Home >Web Front-end >CSS Tutorial >Animating CSS height properties
To animate on the height property using CSS, you can try running the following code
Live demonstration
<!DOCTYPE html> <html> <head> <style> div { border: 2px solid black; width: 300px; height: 100px; animation: myanim 5s infinite; } @keyframes myanim { 30% { height: 400px; } } </style> </head> <body> <div>This is demo text</div> </body> </html>
The above is the detailed content of Animating CSS height properties. For more information, please follow other related articles on the PHP Chinese website!