I want a div '.whole' to animate (slide from right to left)
'.whole'
jQuery
$('#menu').click(function() { $('.whole').toggleClass('r2'); $('#slideMenu').toggle(); }); .r2 { right: 200px }
I am not able to use the function animate() properly.