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

What is Framer? Join the Community
Return to index
Guus Baggermans
Posted Nov 10 - Read on Facebook

Hey Guys,

I want to animate the height of a layer by giving coordinates for the Top and Bottom.

Anyone have an idea how to best go about this? Trying both minY and MaxY just applies them one after each other, instead of scaling the layer :)

4 Comments

Koen Bok

Animate y and height as maxY - y.

Benjamin Den Boer

Hey Guus Baggermans - if you want to animate a layers height instead of its scale, and have it stay centered (just like a scale animation with its origin set to 0.5, 0.5) - this is how you could set it up in a nicely reusable way. See example → http://share.framerjs.com/ee997cpcix2b/

Guus Baggermans

Thanks Benjamin! Will be trying that approach in a bit. A temporary workaround I've used for the time being is a layer with a height of 1, and then scale == height in pixels. Seems to be working except for a jitter in my animation

Guus Baggermans

You can see what I'm trying here: http://share.framerjs.com/wtqxhiht414q/

Read the entire post on Facebook