Answer the question
In order to leave comments, you need to log in
How to set the animation order of an element?
Others tell me how to set the order of animation execution. That is, there is a letter, it is first outlined (animation 1), and then it should be filled with color (animation 2), and so, I made a stroke, but how to add a fill now to this same element? It's all in the svg file.
<style>
.stroke {
stroke-dasharray: 600;
stroke-dashoffset: 100;
animation: dash 15s linear alternate;
animation: dash 15s infinite;
animation-delay: 1s;
}
@-webkit-keyframes dash {
0% {stroke-dashoffset: 0;}
50% {stroke-dashoffset:600;}
100% {stroke-dashoffset: 0;}
</style>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question