Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //simple sliding carousel, showing 3 items at once. No wrapping
- new Y.Charrousel({
- srcNode : "#sliding",
- render : true,
- visible : 3,
- plugins : Y.CharrouselSlide
- });
- //Only showing 1 item (default) & fading instead of sliding
- new Y.Charrousel({
- srcNode : "#fading",
- render : true,
- plugins : Y.CharrouselFade
- });
- //Showing 4 items, sliding, and creating new items to make
- //the carousel smoothly circular in both directions
- //also hides prev/next buttons
- new Y.Charrousel({
- srcNode : "#wrapping",
- render : true,
- visible : 4,
- circular : true,
- "show.prev" : false,
- "show.next" : false,
- plugins : Y.CharrouselSlide
- });
Add Comment
Please, Sign In to add comment