Animated Text Background code:
1.index.html:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Animated Text Background</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>VISUAL CODE</h1> </body> </html>
2.style.css:
body { margin: 0; padding: 0; background: gold; } h1 { text-align: center; margin-top: 150px; font-family: Arial, Helvetica, sans-serif; font-size: 11em; line-height: 1em; text-transform: uppercase; background: url(image1.jpg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: animate 10s linear infinite; } @keyframes animate { 0% { background-position: 0 0; } 100% { background-position: 100% 100%; } }