This div
, by default when moving the mouse over it moves with CSS3
, now with jquery
I try that every 1000ms
, a throw was sent as if they were passing the mouse
, because it moves constantly every 1 second (1000ms)
The problem is that it does not work for me and I do not understand what is wrong.
<!DOCTYPE html>
<html>
<head>
<link href="http://ogar.pw/assets/css/anim.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
setInterval(function() {
$('#play-btn').trigger('mouseover');
$('.hvr-wobble-horizontal').trigger('mouseover');
}, 1000);
});
</script>
</head>
<body>
<div style="width: 300px; height: 300px; background-color: green; position: absolute;" class="hvr-wobble-horizontal" id="play-btn"></div>
</body>
</html>