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

What is Framer? Join the Community
Return to index
Terry Tien
Posted Jul 25 - Read on Facebook

Hi everybody! See you again.
For my project, I'm looking for a way to make the coffeeContent layer in the coffeeGlass layer, tiltable, like when you tilt your coffee cup. I just have no idea how to make it. Can we manipulate the left x or right y separately? Or some other ways? How do you think?
Attached below:


Øyvind Nordbø

Maybe you can do some kind of thing with paper.js? If I'm correct in assuming that you'd like to simulate a liquid type of effect.

Sam Thorne

You could just mask a rectangle to the shape of the coffee and then set the rotation with the anchor point at the top centre of the rect using layer.originX/originY

Read the entire post on Facebook