хоть за кликайтесь
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(function() {
function foo()
{
var a = $('p.test:first');
a.length && a.animate({'margin-left':'50px'},200, foo) && a.removeClass('test')
}
$('#alert').click(function(){
$('p').stop().addClass('test').css({'margin-left':'0px'});
foo();
})
});
</script>
</head>
<div id="alert">CLICK</div>
<body>
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
<p>7</p>
<p>8</p>
<p>9</p>
<p>10</p>
<p>11</p>
<p>12</p>
</body>
</html>