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

What is Framer? Join the Community
Return to index
John Marstall
Posted Jun 15 - Read on Facebook

Can I reset a Utils.delay, or otherwise create a timer and reset it before it expires?

5 Comments

Jonas Treub

You can use the Utils functions throttle and debounce for this purpose: http://share.framerjs.com/5c8c23hojpnq/

Tes Mat

I use JS’s setTimeout() and clearTimeout()

John Marstall

Wow. Awesome. Thank you!

John Marstall

Framer seems to reject the comma in setTimeout. I tried it like so and it seems to work but throws an error -- '"exports.hide()" is not a function.' http://pastebin.com/eHs3m6uB

Tes Mat

Hmm… Don’t know. It worked in my case. See this project: http://share.framerjs.com/7pm1df9ip8xp/

Read the entire post on Facebook