Put in order · HTML and CSS course · Module 6: CSS Animations
Animation property performance
Order these ways of animating from most performant (GPU) to slowest (reflow):
Items to put in order
- box-shadow - repaint, costly
- transform: translateX() - GPU, no reflow
- width / height - reflows the whole layout
- opacity - GPU, lightweight
You can check the correct answer by solving this task in the CodeWorlds game.