Set a delay for the CSS transition effect

Use the transition-delay property to set a delay for the transition effect with CSS. You can try to run the following code to set a 1-second delay of transition:

Example


   
      
   
   
      

Heading One

     

Hover over the below box to change its width. It begins with a delay of 2 seconds.

     
   
Updated on: 2026-03-11T23:14:18+05:30

180 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements