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

What is Framer? Join the Community
Return to index
Jon Wood
Posted Mar 29 - Read on Facebook

Hi friends, looking for a little help in writing the logic for a parallax effect based on the drag distance of a layer.

Here's the sample that I've pared down for you guys to help me with:

My goal is when the property card is dragged and the "Drag to Add" Icon appears, the AddIcon's y position will move the same amount the property card's y position moves, in both directions (up/down).

Hope I was clear enough, thanks in advance!!


Arron J Hunt

You'll want to use Utils.modulate for this one :)

Arron J Hunt

Actually no, you'll need to set a listener on the move that will set the icon's `y` position to image.y - icon.height

Read the entire post on Facebook