- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to delay the Transition Effect with CSS
Use the transition-delay property to delay the transition effect with CSS. You can try to run the following code to set a 1 second delay of transition:
Example
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 150px; background: blue; transition: width 3s; transition-delay: 1s; } div:hover { width: 250px; } </style> </head> <body> <h1>Heading One</h1> <p>Hover over the below box to change its width. It begins with a delay of 1 second.</p> <div></div> </body> </html>
- Related Articles
- Set a delay for the CSS transition effect
- How to create a transition effect with CSS?
- Usage of CSS transition-delay property
- How to set the speed curve of the transition effect with CSS
- How to set the CSS property that the transition effect is for with JavaScript?
- Create a transition effect on hover pagination with CSS
- How to set when the transition effect will start with JavaScript?
- How to delay an animation with CSS
- Set how many seconds or milliseconds a CSS transition effect takes to complete
- How to add transition on hover with CSS?
- Add CSS transition effect for both the width and height property
- Set the name of the CSS property the transition effect is for
- How to create fading effect with CSS
- How to create an overlay effect with CSS?
- CSS Transition property

Advertisements