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

What is Framer? Join the Community
Return to index
Ed Chao
Posted Jul 24 - Read on Facebook

Is there an event for a position change? It would be awesome if you could do something like 'Layer.on Events.positionChange' (Resolved: myLayer.on 'change:x'.)

8 Comments

Albin Ekblom

Please provide more info where/why you need this?

Ed Chao

sure. for example if I wanted to have a row of cards, and when I change the position of one, all the others change as well. currently I can only use Events.animationEnd but it feels sluggish bc it waits for the animation to end. naturally

Albin Ekblom

Change the position of all cards when you change the first one?

Elliott Kember

.on "change:x" should do it?

Ed Chao

Elliott Kember so myLayer.on Events.change:x ? Not sure what the syntax should be.

Elliott Kember

No, myLayer.on "change:x" - events are all strings.

Ed Chao

YES. you sir. you.

Elliott Kember

❤️

Read the entire post on Facebook