D
D
Denis Bukreev2016-10-28 15:47:22
css
Denis Bukreev, 2016-10-28 15:47:22

How to force css animation to run to the end?

So it goes.
:hover { transition: 1s ease-out 1s }
This CSS is processed in such a way that if you remove the mouse from the element during the animation, it will freeze in one state for 1s and only then return to the native state. This looks disgusting.
How can I make it so that either the animation runs to the end, or, if it does not end, there is no delay of 1s?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2016-10-28
@iiiBird

set animation not on hover but on the element itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question