Combining CSS animations

 Combining animations into one keyframe makes the animations perform better.


I had an animation using 'scale3d' on a parent element and an animation using 'rotate3d' on a child. The performance was bad but improved when I put the parent's 'scale3d' in the child's keyframe.




Comments

Popular posts from this blog

How a CSS fish animation works

Selecting adjacent elements on :hover with CSS

Setting the 'class' of an SVG element