Answer the question
In order to leave comments, you need to log in
How to write animation in js?
There is an animation css class:
.ltrSwipe {
animation: ltrSwipe 0.5s ease;
@keyframes ltrSwipe {
0% {
transform: translateX(-100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
}
Answer the question
In order to leave comments, you need to log in
Heh, I'm not robbing you. Animation in styles is implemented natively, so your count in a Java script will slow down. Therefore, add classes, well, in the case of vue, use transition
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question