- 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
CSS Transition property
Use the CSS transition property to set all the four transition properties into a single line. You can try to run the following code to work with the transition property −
Example
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 150px; background: blue; transition: height 3s; } div:hover { height: 250px; } </style> </head> <body> <h1>Heading One</h1> <p>Hover over the below box to change its height.</p> <div></div> </body> </html>
- Related Articles
- CSS transition-duration property
- CSS transition-timing-function property
- Usage of CSS transition-delay property
- Usage of CSS transition-timing-function property
- Add CSS transition effect for both the width and height property
- CSS3 Transition Shorthand Property
- Set the name of the CSS property the transition effect is for
- HTML DOM Style transition Property
- How to set the CSS property that the transition effect is for with JavaScript?
- How to create a transition effect with CSS?
- Set a delay for the CSS transition effect
- How to delay the Transition Effect with CSS
- How to add transition on hover with CSS?
- Create a transition effect on hover pagination with CSS
- Transition Methods in Electric Traction: Open Circuit Transition, Shunt Transition, and Bridge Transition

Advertisements