Floating Text

Floating Text code:

1.index.html:

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Floating Text</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>Floating<br>Text</h1> </body> </html>

2.style.css:

body { margin: 0; padding: 0; background: aqua; overflow: hidden; } h1 { text-align: center; margin-top: 150px; font-family: Arial, Helvetica, sans-serif; font-size: 10em; line-height: 1em; color: white; text-shadow: 0 30px 5px rgba(0,0,0,0.2); animation: animate 5s linear infinite; } @keyframes animate { 0% { transform: rotate(5deg); } 25% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } 75% { transform: rotate(0deg); } 100% { transform: rotate(5deg); } }

Оставьте комментарий

Ваш адрес email не будет опубликован.