Isaiah Bugarin
Isaiah Bugarin

Reputation: 493

Using scale in CSS Animation

I'm trying to use CSS3 animations to scale up a div. However, I want to keep the top side of the div where it's at. So I only want the bottom part of the div to scale up. How do I do this?

Upvotes: 1

Views: 452

Answers (1)

mddw
mddw

Reputation: 5590

You must use -transform-origin , by default at 50% 50%

More info : https://developer.mozilla.org/en/CSS/transform-origin

Upvotes: 1

Related Questions