Welcome to WebmasterWorld Guest from 54.145.85.22

Forum Moderators: open

Message Too Old, No Replies

slideshow jquery

     
7:53 am on May 27, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 30, 2006
posts: 399
votes: 0


is it too difficult to create slideshow in jquery as most of the websites use plugins created by others
3:43 pm on May 31, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Dec 13, 2009
posts:945
votes: 0


I've used plugins and written my own numerous times.

The advantage of using a third party plugin is it takes less of your time.

The advantage of writing your own is you can tailor it specifically to your own needs. The same logic applies for pretty much any JS plugin.

As far as writing your own slideshow - with a working knowledge of the overflow and position CSS attributes, it's pretty simple.

For example, to slide an image in from the left, you would place it in a fixed height/width div with overflow:hidden and position:relative.

The image itself would be position:absolute, and it's left would be set to negative [image width].

You could then call jQuery animate on it like so:

element.animate({
'left': 0
}, 1000);
12:54 pm on June 1, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 30, 2006
posts: 399
votes: 0


the option using next, end as well as eq is seen on the slideshows. what are the options that can be used to traverse the dom
6:32 pm on July 22, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Dec 13, 2009
posts:945
votes: 0


jQuery has some rather good docs...

[api.jquery.com...]