Guest User

Untitled

a guest
Aug 10th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //simple sliding carousel, showing 3 items at once. No wrapping
  2. new Y.Charrousel({
  3. srcNode : "#sliding",
  4. render : true,
  5. visible : 3,
  6. plugins : Y.CharrouselSlide
  7. });
  8.  
  9. //Only showing 1 item (default) & fading instead of sliding
  10. new Y.Charrousel({
  11. srcNode : "#fading",
  12. render : true,
  13. plugins : Y.CharrouselFade
  14. });
  15.  
  16. //Showing 4 items, sliding, and creating new items to make
  17. //the carousel smoothly circular in both directions
  18. //also hides prev/next buttons
  19. new Y.Charrousel({
  20. srcNode : "#wrapping",
  21. render : true,
  22. visible : 4,
  23. circular : true,
  24. "show.prev" : false,
  25. "show.next" : false,
  26. plugins : Y.CharrouselSlide
  27. });
Add Comment
Please, Sign In to add comment