<div class="hero-text"> <h1>Build The <span class="shine">Future</span></h1> </div>
* { box-sizing: border-box; }
body {
font-family: system-ui, "Segoe UI", sans-serif;
background: #0f172a;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
font-size: 4rem;
font-weight: 800;
color: white;
margin: 0;
letter-spacing: -2px;
}
.shine {
background: linear-gradient(
to right,
#a855f7 0%,
#ec4899 40%,
#fff 50%,
#ec4899 60%,
#a855f7 100%
);
background-size: 200% auto;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: shine 3s linear infinite;
}
@keyframes shine {
to {
background-position: 200% center;
}
}Click any element to find its code Esc
Check this code before you run it
It came from a shared link. It runs with fewer permissions, so it cannot open pop-ups, submit forms or start downloads.
element.animate() call shows up here as it plays.