Search code examples
jquerysliderzurb-foundationorbit

How to disable Orbit timer in Foundation 4?


I am using Orbit in Foundation 4 and would like to totally disable the timer function so slides can only be advanced manually by the user. Is this possible?


Solution

  • $(document).foundation('orbit', {
        timer_speed: 0
    });
    $(document).foundation();
    

    Two calls are needed to initialize the other components of Foundation. Any customization should be done before Foundation itself is initialized.