Skip to content

newcity/nicefade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NiceFade: A jQuery slideshow plugin

Author — Caleb Pierce : http://calebpierce.com

DOM structure:

ul or ol.nicefade_container
	li (these are the slides)
ul or ol.nicefade_index-list (same length as items in slideshow) (optional)
	li (these are the slide indices)
		a

Options:

  • animationSpeed: speed of slideshow animation in milliseconds
  • animationDelay: delay between animations in milliseconds
  • indexList: ul or ol with each child li representing their own slide in the slideshow
  • initialIndex: the slideshow's starting point
  • currentClass: the class of the current slideshow item and current index item
  • beforeSlideChange: function that gets called before the slides begin to change
  • afterSlideChange: function that gets called after the slides finish changing

Public functions:

Note: automated slide animation stops when you manually move to a specific slide

  • next(): advance the slideshow one step forward
  • previous(): move the slideshow one step backward
  • seek( index ): change the visible slide to the one at index @index
  • stop(): stop the slideshow's automated animation
  • slideshow_length(): the number of elements in the slideshow
  • current_slide(): the slide currently being shown
  • target_slide(): the slide that is targeted to fade in (via click or automation)

About

A very simple slideshow plugin for jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published