L
L
L1nw0od2018-03-06 15:13:44
css
L1nw0od, 2018-03-06 15:13:44

How to fix css animation?

Good day, there is an image that should leave the left block and be fixed!
I know how to do this in CSS when hovering over a block, but how to make it so that when I hover over that block, the animation leaves and is fixed permanently! So that when you remove the mouse, does it stay there?
---

<style>
.section1 .section1-img{
position: absolute;
    top: 40px;
    left: -500px;
    transition: 1s;
}
.section1:hover .section1-img{

    transition: 1.3s;
    left: 0;
}

</style>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gortyser, 2018-03-06
@L1nw0od

Actually, animations have such a useful feature as animation-fill-mode . Should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question