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

What is Framer? Join the Community
Return to index
Christian Schaf
Posted Jan 23 - Read on Facebook

Hi guys, is there an Event "Events.AnimationAnimating" so that I can to an Operation line decrease an counter while the animation is running? Events.AnimationLoop isnt triggering.

9 Comments

Marc Krenn

That's because there's no 'Events.AnimationLoop' ;)

What we usually do is to listen to changes (http://framerjs.com/docs/#events.change) made to the animated layer using:

'layer.on "change:foo", ->'
_____counter =- 1 # etc.

Christian Schaf

ok thank you

Christian Schaf

can i watch for own attribute changes? My class extended from Layer

Marc Krenn

Sure, just do

'myLayerOfObjectFoo.on "change:point/frame/whatever", ->'
_____counter =- 1

Christian Schaf

ok

Marc Krenn

About which module are we talking here?

Christian Schaf

markerModule

Christian Schaf

i found a quick and dirty solution

Christian Schaf

@[undefined:http\://cschaf.github.io/tourist-app/] -> click the marker right side

Read the entire post on Facebook