<span class="gradient-color-text">
I have a dream
</span>
body {
background-color: #000;
text-align: center;
}
@keyframes text-color-gradient {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
}
.gradient-color-text {
background-size: 400% 400%;
background-image: linear-gradient(to right, #ff0000, #ff8000, #fff200, #51ff00, #00d0ff, #9000ff,#ff008c);
-webkit-background-clip: text;
animation: text-color-gradient 10s ease infinite;
color: transparent;
font-size: 48px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.