0

Using sly vertical scroller how is it possible to add autoplay? So it starts moving the slides.

Example: http://jsfiddle.net/9dJfQ/

// Call Sly on frame
    $frame.sly({
        horizontal: 1,
        itemNav: 'basic',
        smart: 0,
        scrollBy: 1,
        mouseDragging: 1,
        swingSpeed: 0.2,
        scrollBar: $wrap.find('.hsscrollbar'),
        dragHandle: 1,
        clickBar: 1,
        elasticBounds: 1,
        speed: 600,
        startAt: 0,                 
    });
Light_Warrior
  • 183
  • 1
  • 4
  • 17

1 Answers1

1

Add to initialization options:

cycleBy: 'items',
cycleInterval: 1500,  // Cycle interval
pauseOnHover: true,
startPaused:   false

More info in the docs on Github: https://github.com/darsain/sly/blob/master/docs/Options.md

ReyHaynes
  • 2,932
  • 1
  • 15
  • 22