$(document).ready(function() { //slides animations $(".slide").width(161); $(".s1").width(380); $(".slide").hover(function() { $(this).animate({ width: "380px" }, 200); }, function () { $(this).animate({ width: "161px" }, 200); });});
$(".slide").hover(function(){ $(this).animate( { width:"380px"}, 200 ) .animate( { width:"161px" }, 200 );});
Have a look here and at the examples towards the bottom of the page :)
http://api.jquery.com/animate/