<body>
<div>
<p>
<span class="one">V</span>
<span class="two">T</span>
<span class="three">Y</span>
<span class="four">P</span>
<span class="five">E</span>
</p>
</div>
</body>
@font-face {
font-family: RobotoFlex;
src: url("https://xptype.romellogoodman.com/fonts/robotoflex/RobotoFlex.ttf");
}
body {
background: #4AF626;
font-family: RobotoFlex;
margin: 0px;
}
p {
font-size: 64px;
}
div {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
@keyframes letter-animation {
0% {
font-variation-settings: "wght" 0;
}
50% {
font-variation-settings: "wght" 1000;
}
100% {
font-variation-settings: "wght" 0;
}
}
span {
display: inline-block;
animation: letter-animation;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
transition: font-variation-settings 0.5s ease-in;
font-variation-settings: "wght" 0;
}
span.one {
animation-delay: 200ms;
}
span.two {
animation-delay: 400ms;
}
span.three {
animation-delay: 600ms;
}
span.four {
animation-delay: 800ms;
}
span.five {
animation-delay: 1000ms;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.