

- 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
Shorthand property to set all the animation properties with CSS
The shorthand property to set all the animation properties is animation. It sets the animation duration, animation name, etc.
You can try to run the following code to work with animation shorthand property:
Example
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 200px; background-color: yellow; animation: myanim 2s } @keyframes myanim { from { background-color: green; } to { background-color: blue; } } </style> </head> <body> <div></div> </body> </html>
- Related Questions & Answers
- CSS Animation Shorthand property
- Shorthand property to set the font with CSS
- Shorthand property to set columns with CSS
- Shorthand property for setting all the column-rule-* properties
- Shorthand property to set the background in CSS
- Set all border-radius properties with CSS
- The padding shorthand Property in CSS
- The margin Shorthand Property in CSS
- The border Shorthand Property in CSS
- The outline Shorthand Property in CSS
- The Background Shorthand Property in CSS
- CSS top property with Animation
- CSS shorthand property for the flex-grow, flex-shrink, and the flex-basis properties
- Extend the animation properties in both directions with CSS
- The list-style Shorthand property in CSS
Advertisements