Answer the question
In order to leave comments, you need to log in
How to make the buttons appear one after the other?
There is some HTML code
<div class="button-group anim">
<button class="button"></button>
<button class="button"></button>
<button class="button"></button>
<button class="button"></button>
<button class="button"></button>
<button class="button"></button>
</div>
.anim .button:nth-child(2) {
animation: fade 1s ease-in-out;
}
@keyframes fade {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
Answer the question
In order to leave comments, you need to log in
Thanks for the replies, but I haven't found an answer yet.
As a result, answering your own question - no, this can only be implemented through JS.
Perhaps the easiest option is to specify the animation-delay value inline in the layout. And hang animation on all .anim .button elements.
<div class="button-group anim">
<button class="button" style="animation-delay: 0s"></button>
<button class="button" style="animation-delay: 1s"></button>
...
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question