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

What is Framer? Join the Community
Return to index
David Townsend
Posted Sep 16 - Read on Facebook

Hi guess I am seeking help on hopefully a simple question.

I have created a draggle object with a constraint and I want to use its y value to change the opacity values of two different layers.

http://share.framerjs.com/p9qi8fs4vnyp/

So in the project I am sharing. I want to take the y value of the handle and have it change the opacity value of LayerA if the handles y position travels between 611 to 0. would translate the LayerA opacity value between 0 and 1. Vise versa if the handles y position travels between 611 to 1233 I want it to change the opacity values of LayerB between 0 and 1.

Any help would greatly be appreciated.

Thank you

3 Comments

Amrit Mazumder

Hi David , is this the outcome you want: http://share.framerjs.com/fe04619xd4fa/

I'm using Utils.modulate to translate the Y-position of the layer to a number between 0 and 1

David Townsend

Thank you guys for the help

David Townsend

I thought you guys might want to know what you helped me with. Again thank you.

Read the entire post on Facebook