← Modern CSS Design

Lesson 3 of 3 · 8 min

Tasteful animation

transition animates property changes smoothly: transition: transform 0.2s ease.

Animate transform and opacity — they are cheap; animating layout properties causes stutter.

Practice

Add a hover effect that gently scales a button using transform.

Quiz

+50 pts
1. Cheap properties to animate?
2. Smooth changes use…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

MDN Web Docs

Reference grid, media queries and transitions as you build.

Free documentation.

Explore tool

CodePen

Prototype layouts and hover effects in the browser.

Free plan available; Pro features optional.

Explore tool