Transitions

๐ŸŽจ CSS3+ ๐ŸŸข Chapter 34 of 49 ๐Ÿ“‚ Phase 12: Transforms & Animations ๐Ÿ“… 2026 Edition
๐Ÿ“Œ Covered in this chapter: Transition Definition ยท transition-property ยท duration ยท timing-function ยท delay ยท Shorthand ยท Hover ยท Focus ยท Limitations ยท Reduced Motion
Welcome to Chapter 34: Transitions โ€” part of the CSS Complete Roadmap. This lesson covers all subtopics with clear explanations, code examples, and best practices used in professional web development.
1Transition Ante Enti?

Transition ante enti? Property value change smooth ga animate cheyadam โ€” state A nundi state B ki gradual interpolation.

.button {
  background: #2563eb;
  transition: background-color 200ms ease,
              transform 200ms ease;
}

.button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid #93c5fd;
  transition: outline-offset 150ms ease;
}
2Transition Properties & Limitations
  • transition-property โ€” which properties animate (or all โ€” avoid in production)
  • transition-duration โ€” 200ms, 0.3s
  • transition-timing-function โ€” ease, linear, ease-in-out, cubic-bezier()
  • transition-delay โ€” start delay
  • Shorthand: transition: property duration timing delay;

Limitations: Transitions need trigger (hover, class change) โ€” auto-starting loops ki animations use cheyandi. Only discrete steps ki transitions work avvavu.

CSS โ€” Reduced Motion
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
OC
Written by Our Compiler Technical Editorial Team
Reviewed for accuracy ยท CSS Complete Roadmap ยท Last updated August 2026