By default, if you stop hovering over an element, the transitioning of any properties will stop as well. Simple example:
li {
position: relative;
transition: 1s;
left: 0;
}
li:hover {
left: 20px;
}
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
Try running the pointer from the top to the bottom of the list quickly, and the elements will hardly move. I want to achieve the behaviour when transition, once started, will be brought to the end. I'm looking for pure CSS solution.
css
, I added an example using a combination withjavascript