Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Transitions | CSS Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. CSS Course

Lesson 20 of 50

·css

Transitions

9 mins

Course progress40%

What you'll learn

Keep these ideas in mind as you work through the lesson.

3 points
  • Only properties that have a **computable intermediate value** can be transitioned (e.g., `display` cannot).
  • Use `will-change` (sparingly) to hint the browser about upcoming transitions.
  • Combine with `prefers-reduced-motion` to respect user preferences.

Transitions animate between two states over a period.

transition: property duration timing-function delay;

Common properties: opacity, transform, color, background-color.


Example: Smooth hover link

a {
  color:#0066cc; text-decoration:none; transition:color .2s ease;
}
a:hover { color:#004499; }
Make it stickPractice what you've learned1 quiz · 6 practical tests · Optional activities from CSS CourseBrowse activities
Previous lessonPseudo‑Classes & Pseudo‑ElementsContinue to lesson 21TransformsBack to CSS Course curriculum