- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- 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
Animate CSS text-decoration-color property
To implement animation on text-decoration property with CSS, you can try to run the following code −
Example
<!DOCTYPE html> <html> <head> <style> #demo { position: absolute; right: 0; width: 300px; height: 200px; background-color: blue; text-decoration: underline; animation: myanim 3s infinite; } @keyframes myanim { 30% { right: 350px; text-decoration-color: orange; } } </style> </head> <body> <h1>CSS text-decoration-color property</h1> <div id = "demo"> <h1>This is demo text.</h1> </div> </body> </html>
Advertisements