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

What is Framer? Join the Community
Return to index
Robin Spielmann
Posted Feb 04 - Read on Facebook

Hey!

Is there a possibility to animate the lineHeight or the opacity of the html input of a layer?

3 Comments

Radek Kyselý

Interesting question. Can you be more specific about what you need it for? :)

Paul Justin Farino

Depends on the use case. A little hacky. Hope this is what you need.
https://framer.cloud/RZyYK/

Radek Kyselý

Robin Spielmann There is this cool Utils.insertCSS() :)
This is what I came up with right now :)

https://framer.cloud/gjRnZ/
Click anywhere and you'll see the animation of layer.html for:
line-height
opacity
font-weight
letter-spacing

In fact, you could animate virtually any CSS property this way. Also the code is much much cleaner using classes instead of hard coded style inside .html :)

Read the entire post on Facebook