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

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. CSS Basics to Advanced

Lesson 20 of 50 · css

Transitions

Duration: 9 mins

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; }
Previous: Pseudo‑Classes & Pseudo‑ElementsNext: Transforms