DEV Community

Discussion on: Dynamizing your webite with CSS animations

 
crimsonmed profile image
Médéric Burlet

As I said CSS animations don't apply to style.

There are too possibilities for your issue.

First one using scaleY. You can simply transform the scaling of the Y axis in the animation like this:

scaleY Pen

This however is still not smooth if you have text at the bottom.

The best I would recommend is using flex

You can easily get a very fluid height movement for instance:

flex pen

Thread Thread
 
taimoorsattar7 profile image
Taimoor Sattar

Great..