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

What is Framer? Join the Community
Return to index
Noam Elbaz
Posted Nov 30 - Read on Facebook

How do I stop:
Utils.interval 1, ->
timeStart = timeStart + 1
timer.html = timeStart + "s"
I'm trying to animate a timer with record button that should stop after a second CLICK

4 Comments

Noam Elbaz

...or if you have a better way.... let me know

Benjamin Den Boer

Hey Noam, you can clear the interval set by Utils.interval. For example, to clear it on click:

Benjamin Den Boer

Utils.interval is based on setInterval(), which returns an interval ID, which can be cleared with clearInterval(). :)

Noam Elbaz

Thanks. Been playing with it. exactly what I was looking for.

Read the entire post on Facebook