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

What is Framer? Join the Community
Return to index
Joshua Tucker
Posted Dec 22 - Read on Facebook

Hello all! Any great examples available that demonstrate Utils.modulate? I think I have a basic understanding of it, but I am having trouble with precision.

I am attempting to change the scale of an object based on how far I drag, however the scale isn't 1-to-1 (My value has been event.x).

8 Comments

Shane Brown

Hi Josh, here's something quick that might help. Not sure how to upload to show you code at the same time, or how to get it to do that fancy framer:// thing, but here it is so feel free to download.

http://www.spacebarkid.com/framer/boxDistance.framer/

Shane Brown

pastebin here too if that helps :)
http://pastebin.com/FfAb4092

Joshua Tucker

Shane Brown Thanks for all your effort man, super appreciate it. I'll give it a look :).

Joshua Tucker

Shane Brown YOU ROCK. So helpful. Thanks for taking the time :).

Shane Brown

Joshua Tucker, no problem 8D

Benjamin Den Boer

This may also be helpful to you:
http://framerjs.com/docs/#utils.modulate :)

Benjamin Den Boer

This may also help clarify how Modulate works:

Joshua Tucker

Benjamin Den Boer I checked those out prior to posing the question. For some reason, they made less sense before then now. But I understand much more now. Thanks for all that you do!

Read the entire post on Facebook