'CSS translateX() animation resets whenever mouse stay on element
Solution 1:[1]
Truing using this code
div {
width: 100px;
height: 100px;
}
div:hover{
animation-name: example;
animation-duration: 4s;
}
@keyframes example {
from {width: 0%; height:0%}
to {width: 100%; height: 100%}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Francesco |
