I don't want the div to animate on mouse events mouseOver() or mouseOut(). I want that the div automatically animate itself (continuously)...
Here is the JFiddle of my code... http://jsfiddle.net/UxtJV/610/
HTML
<div class=circle1></div>
CSS
.circle1 {
position:absolute; top:50px; left:50px;
width: 0px; height: 0px;
border:1px solid red;
padding:20px;
border-radius:50%;
}
JS
$(".circle1").mouseover(function() {
$(this).animate({top:"0", left:"0", width:"100px", height:"100px", opacity: 0}, 200);
});
$(".circle1").mouseout(function() {
$(this).animate({top:"50px", left:"50px", width:"0", height:"0", opacity: 1}, 200);
});