K
K
kappka2020-01-02 00:39:30
css
kappka, 2020-01-02 00:39:30

How to continue css animation from the current moment?

Hello.
I have an infinite animation in CSS for an element (animation: infinite )
Clicking on the button should play another animation for this element, which is already finite.
If this is implemented by changing the css class, then it turns out that the element "twitches", since the new animation does not start from the positions in which the element is at the moment the button is pressed.
Can you please tell me if this can be implemented with a smooth transition?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question