Could use some assistance with looping this gradient smoothly over the text without any annoying jumps appearing during the animation. Is there a way to achieve a seamless movement across the text? Any suggestions on how to approach this?
Here is a live example of my code on CodePen,
and below is the corresponding HTML and CSS:
<pre class="header">
88888888888 888 888 8888888888 8888888b. .d88888b. .d8888b. .d8888b. 888 888 888b d888 8888888b. 8888888888 888b 888
888 888 888 888 888 Y88b d88P" "Y88b d88P Y88b d88P Y88b 888 888 8888b d8888 888 "Y88b 888 8888b 888
888 888 888 888 888 888 888 888 Y88b. Y88b. 888 888 88888b.d88888 888 888 888 88888b 888
888 8888888888 8888888 888 d88P 888 888 "Y888b. "Y888b. 888 888 888Y88888P888 888 888 8888888 888Y88b 888
888 888 888 888 8888888P" 888 888 "Y88b. "Y88b. 888 888 888 Y888P 888 888 888 888 888 Y88b888
888 888 888 888 888 888 888 "888 "888 888 888 888 Y8P 888 888 888 888 888 Y88888
888 888 888 888 888 Y88b. .d88P Y88b d88P Y88b d88P Y88b. .d88P 888 " 888 888 .d88P 888 888 Y8888
888 888 888 8888888888 888 "Y88888P" "Y8888P" "Y8888P" "Y88888P" 888 888 8888888P" 8888888888 888 Y888
</pre>
.header{
text-align: center;
font-family: monospace;
display:block;
background-image:
linear-gradient(to right, #ff0000 0%, #ff9a00 10%, #d1de21 20%, #4fdc4a 30%, #3fdad8 40%, #2fc9e2 50%, #1c7fee 60%, #5f15f2 70%, #ba0cf8 80%, #fb07d9 90%, #ff0000 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: move 35s linear infinite;
}
@keyframes move {
to {
background-position: 1600vh;
}
}
Any help or insights would be greatly appreciated as I'm struggling with this. Thank you!