- 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
Set the name of the CSS @keyframes animation
Use the animation-name property to set the name of the @keyframes animation. You can try to run the following code to set animation name
Example
<!DOCTYPE html> <html> <head> <style> div { width: 150px; height: 200px; position: relative; background: red; animation-name: myanim; animation-duration: 2s; } @keyframes myanim { from {left: 0px; background-color: green;} to {left: 100px; background-color: blue;} } </style> </head> <body> <div></div> </body> </html>
- Related Articles
- CSS3 Animation @keyframes
- Moving left animation with keyframes using CSS3
- CSS animation-name property
- Set a delay for the start of an animation with CSS
- Shorthand property to set all the animation properties with CSS
- Set whether the animation is running or paused using CSS
- Set the number of times an animation should be played using CSS
- How to set the fill-mode for an Animation with CSS
- Which CSS property is to be used to set the speed curve of the Animation?
- Set a CSS style for the element when the animation is not playing
- Set animation with a slow start using CSS
- Set animation with a slow end using CSS
- Set the name of the CSS property the transition effect is for
- Set the name to Grid Items with CSS
- Set an animation with the same speed from start to end with CSS

Advertisements