I
I
Igor Kaspersky2015-09-29 22:09:45
css
Igor Kaspersky, 2015-09-29 22:09:45

CSS transition?

Hello! assigned to the element: hover When hovering over the element, the animation flows smoothly, when I move the mouse away, it abruptly returns, how to fix it. I looked at the sites, I looked at the animation code itself on the site. Everything works there and it is written practically the same. How to be?
пишу transition: .2s easy 0s;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2015-09-29
@HHabar

You need to write transition not on the :hover element, but on the usual one
Correct:

.anim {
    transition: .2s easy 0s;
}

Not right:
.anim:hover {
    transition: .2s easy 0s;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question