This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Matt Wujek
Posted Apr 30 - Read on Facebook

Quick question: What's the easiest way to clear an interval? I'm making an animated odometer (http://jsfiddle.net/adamschwartz/rx6BQ/).

I just need a way to end the interval after it reaches the target amount.

Thanks!!

2 Comments

Mike Feldstein

interval = Utils.interval 2, (->)
....
clearInterval(interval)

Matt Wujek

Thanks a lot, Mike!

Read the entire post on Facebook