CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS transition Property

CSS transition Property



The transition property is used to add transitions to an element. It is a shorthand property for:-

  1. transition-property
  2. transition-duration
  3. transition-timing-function
  4. transition-delay


Default Value:-


Its default value is all 0s ease 0s.




Its syntax is:- transition: property duration timing-function delay | initial | inherit;


Further Explanation:-


Value Description
transition-property Specifies the name of the CSS property the transition effect is for.
transition-duration Specifies how many seconds or milliseconds the transition effect takes to complete.
transition-timing-function Specifies the speed curve of the transition effect.
transition-delay Defines when the transition effect will start.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS