Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Orbit in 'paused' state #2028

Closed
adamyonk opened this issue Mar 25, 2013 · 8 comments
Closed

Start Orbit in 'paused' state #2028

adamyonk opened this issue Mar 25, 2013 · 8 comments

Comments

@adamyonk
Copy link

Is it possible to have Orbit not automatically start, or to start it in a paused state? I don't see this anywhere in the documentation.

@mhayes
Copy link
Contributor

mhayes commented Mar 25, 2013

Right now you can only turn off the automatic slide advancement by setting timer_speed:0 like so:

<ul data-orbit data-options="timer_speed:0;">
 ...
</ul>

@emilhem
Copy link

emilhem commented Mar 27, 2013

Why not use JavaScript to stop it?

Select by id which orbit-timer to use:

$("#myorbit").siblings(".orbit-timer").click();

Or just pause all:

$(".orbit-timer").click();

@endorama
Copy link

@mhayes Your proposed solution seems to don't work in Foundation 4.3.1.

Js are taken from Github ( scss-standalone ) while css are a custom build based upon foundation scss.

This is the jsFiddle demonstrating the problem: http://jsfiddle.net/UHSfw/7/

@emilhem
Copy link

emilhem commented Sep 17, 2013

Then use my solution underneath his.

@endorama
Copy link

I'm using it right now, but I find that solution is a bit hackish. Using javascript to simulate an user interaction while you could achieve the same thing via an option seems, imho, not the best solution.

In any case thanks for pointing out this other solution :)

@Chris-Bell
Copy link

Hello all,
Try...

data-options="timer:false"

...in your html code or,

$(document).foundation('orbit',{timer:false}); 

when calling Foundation initially.

@Mr-GC
Copy link

Mr-GC commented Oct 10, 2016

I know this thread is old but I thought I'd comment anyway in case someone ends up here like I did. I'm using foundation 6.2.3 and this works for me:
data-options="autoPlay: false"

@luxumbra
Copy link

luxumbra commented Dec 8, 2016

@Mr-GC this worked for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants