

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set how many seconds or milliseconds a CSS transition effect takes to complete
Use the transition-duration property in CSS to set how many seconds or milliseconds a CSS transition effect takes to complete −
Example
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 150px; background: blue; transition-property: height; transition-duration: 2s; } div:hover { height: 200px; } </style> </head> <body> <h1>Heading One</h1> <p>Hover over the below box to change its height.</p> <div></div> </body> </html>
- Related Questions & Answers
- Set how many seconds or milliseconds a transition effect takes to complete.
- Set a delay for the CSS transition effect
- How to create a transition effect with CSS?
- How to delay the Transition Effect with CSS
- 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
- Set the name of the CSS property the transition effect is for
- How to set when the transition effect will start with JavaScript?
- How to set the speed curve of the transition effect with JavaScript?
- Set Mask Effect with CSS
- Set Invert Effect with CSS
- Set Grayscale Effect with CSS
- Add CSS transition effect for both the width and height property
- Set Drop Shadow Effect with CSS
Advertisements