CSS transition stops abruptly

I am talking about this example ( badAdviceGuy created it for me ):

Css transition grid

.wrapper {
    width: 300px;
}

li {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: relative;
    padding: 3px;
}
a {
    display: block;
    height: 40px;
    width: 40px;
    background: lightblue;
    position: absolute;
    -webkit-transition: .3s;
    transition: .3s;
}
a:hover {
    -webkit-transform: scale(2,2);
    transform: scale(2,2);
    z-index: 100;
    background: lightgreen;
}

When I hang over grid elements, the zoom effect stops abruptly as soon as I exit the element. Well, in fact, I read that it does not stop, but immediately returns when the mouse exits again:

Starting and changing a transition :

, , , . . - , , . : hover , , . , . , . , , , , , . , . .

, . Javascript, , , , .

css?

+2

All Articles