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

What is Framer? Join the Community
Return to index
Zoltan Ray
Posted Jan 29 - Read on Facebook

Is it weird that scaleX in this case returns the expected values (0 > 1) but the effect on appearance is binary? The indicator layer doesn't appear to scale and only appears at the top of the range, when scaleX = 1.

I applied the same dragging input and modulate to other properties like rotation which worked fine.

dragLayer.on Events.DragMove,->
indicator.scaleX = utils.modulate dragLayer.y, [-200,0], [1,0], true


Joshua Tucker

Is there anything about this code that helps it work properly (if I am understanding you correctly)? I can drag and scale the indicator layer smoothly with this. Maybe it has something to do with the project or session - try quitting and re-opening? Or possibly a slight unwanted space or comma?

Zoltan Ray

Thanks, Joshua. Your code looks identical to mine so I'll do a careful scrub and see if it works.

Joshua Tucker

Zoltan Ray Cool man. Let us know.

Zoltan Ray

Found it at last. Before I was using scale I was animating the width and had set the originX to be half the screen width (540) instead of using the 0-1 range (0.5).

Joshua Tucker

Awesome! Glad you figured it out.

Read the entire post on Facebook