DEV Community

Yohem
Yohem

Posted on

Why use transform on a animation/transition/JsEffect

It's very important if You want move or deform element in animation to use the CSS property transform.
transform is an basic CSS property to move a element but they are also other property like (top, right ..., margin, ...). The other properties work for animation but they are an bigger impact for the DOM and they can slow down web's performance.

So if you want the better performance for your web site you need to use transform, extra if you want deform like rotation, scale *or use *"3D".

Top comments (0)