
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Animate Transform Property with CSS Animation
To implement animation on transform property with CSS, you can try to run the following code −
Example
<!DOCTYPE html> <html> <head> <style> div { margin: auto; border: 2px solid blue; width: 300px; height: 400px; background-color: orange; animation: myanim 3s; } @keyframes myanim { 30% { transform: rotate(120deg); } } </style> </head> <body> <h1></h1> <div> <h1>Demo</h1> </div> </body> </html>
Advertisements