- 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
Animate CSS border-top property
To implement animation on the border-top property with CSS, you can try to run the following code
Example
<!DOCTYPE html> <html> <head> <style> table,th,td { border: 1px solid black; } #newTable { width: 500px; height: 300px; background: yellow; border: 15px solid yellow; animation: myanim 3s infinite; background-position: bottom left; background-size: 50px; } @keyframes myanim { 30% { background-color: orange; border-right-color: red; border-right-width: 25px; border-spacing: 50px; border-top: 125px solid red; } } </style> </head> <body> <h2>Performing Animation for top border</h2> <table id = "newTable"> <tr> <th>Subject</th> <th>Student</th> <th>Marks</th> </tr> <tr> <td>Maths</td> <td>Amit</td> <td>98</td> </tr> <tr> <td>Science</td> <td>Sachin</td> <td>99</td> </tr> </table> </body> </html>
- Related Articles
- Animate border-top-width CSS property
- Animate CSS border-top-color property
- Animate CSS border-top-left-radius property
- Animate CSS border property
- Animate CSS border-spacing property
- Animate CSS border-bottom property
- Animate border-color property with CSS
- Animate border-left property with CSS
- Animate CSS border-left-color property
- Animate CSS border-left-width property
- CSS border-top-left-radius property
- CSS border-top-right-radius property
- Usage of border-top-color property in CSS
- Usage of border-top-style property in CSS
- Usage of border-top-width property in CSS

Advertisements