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

What is Framer? Join the Community
Return to index
Charlie Lim
Posted Jun 20 - Read on Facebook

Hi, Framers!
I've made a prototype for zooming a character. You can directly zoom with Pinch, ForceTouch, DoubleTab on the character and also it can be scaled with the slider.
Can the knob of slider be moved as I pinch the character?


Benjamin Den Boer

Hiya Charlie Lim — the principle of this is the same as how you connect the slider value to the scale of the character, only in reverse. So what you'll need is to check for scale changes, and then update the slider value as well. Your modulate can be used in reverse as well. :-) See:

character.onChange "scale", ->
____slider.value = Utils.modulate(this.scale, [0.1,1.2], [0,120], true)

Read the entire post on Facebook