Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: develop
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (17 sloc) 0.745 kb

SlideShow.CSS {#SlideShow-CSS}

Adds CSS3 transitions to SlideShow. Experimental!

Dependencies

SlideShow function: useCSS {#SlideShow:useCSS}

Overrides the default transitions with CSS transitions.

Syntax:

SlideShow.useCSS();

Example:

You'll first want to verify if the browser supports CSS transitions and transforms, I typically use Modernizr:

#JS
if (Modernizr.csstransitions && Modernizr.csstransforms){
  SlideShow.useCSS();
}

Browsers that (think they) support transitions and transforms will use the new CSS transitions instead of the JavaScript transitions.

Jump to Line
Something went wrong with that request. Please try again.