Good day! I can not figure out how to implement the rotation of the picture at 45 and -45 degrees uninterruptedly, that is, the picture all the time tilts in one way or the other. So far, only when the mouse is moved:
<img id="image" src="4.png"> <script type="text/javascript"> $(document).ready(function(){ jQuery("#image").rotate({ bind:{ mouseover:function(){ $(this).rotate({animateTo:45}) }, mouseout:function(){ $(this).rotate({animateTo:-45}) } }}); }); </script>