- 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
Which CSS property is used to run Animation in Reverse Direction?
Use the animation-direction property to run animation in reverse direction. The property is used with the reverse animation value to achieve this.
Example
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 200px; background-color: yellow; animation-name: myanim; animation-duration: 2s; animation-direction: reverse; } @keyframes myanim { from { background-color: green; } to { background-color: blue; } } </style> </head> <body> <div></div> </body> </html>
- Related Articles
- Which CSS property is used to run Animation in Alternate Cycles?
- CSS animation-direction property
- Which CSS property is to be used to set the speed curve of the Animation?
- Role of CSS flex-direction property column-reverse value
- Role of CSS flex-direction property row-reverse value
- CSS animation-delay property
- CSS animation-duration property
- CSS Animation Shorthand property
- CSS animation-name property
- CSS flex-direction Property
- Name the device which is used to reverse the direction of current in the coil of a motor?
- CSS animation-fill-mode property
- CSS animation-iteration-count property
- CSS animation-play-state property
- CSS animation-timing-function property

Advertisements