<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
position: relative;
animation: mymove 5s infinite;
}
div:hover {
animation-play-state: paused;
}
@keyframes mymove {
from {left: 0px;}
to {left: 200px;}
}
</style>
</head>
<body>
<h1>Set animation-play-state on Hover</h1>
<p>Hover over the red box to stop the animation.</p>
<div></div>
</body>
</html>