<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#box").animate({width:300},"slow");
$("#box").animate({width:100},"slow",aniDiv);
$(".btn1").click(function(){
$(":animated").css("background-color","blue");
<button class="btn1">Mark animated element</button>