Answer the question
In order to leave comments, you need to log in
How to make css text animation like this?
How to make such (text Welcome!) animation in pure css?
Answer the question
In order to leave comments, you need to log in
h1 {
position: relative;
width: fit-content;
padding: 0 10px;
}
h1::before {
content: "";
position: absolute;
display: block;
height: 100%;
background: #fff;
animation: foo 3s;
}
@keyframes foo {
0% {
left: 0;
right: 100%;
}
50% {
left: 0;
right: 0;
}
100% {
left: 0;
right: 100%;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question