CodeLab
Tutorials For Everyone
Run
<!DOCTYPE html> <html> <head> <style> #container { width: 300px; height: 200px; border: 1px solid blue; animation: anim 5s infinite; margin: auto; } @keyframes anim { 50% {border-bottom: 15px solid red;} } </style> </head> <body> <h1>Animatable 'border-bottom' Property</h1> <hr> <p>Experience the changing size and color of the border-bottom of the container using border-bottom property.<p> <div id="container"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> </body> </html>