I want a div '.whole' to animate (slide from right to left)

jQuery

$('#menu').click(function() {
      $('.whole').toggleClass('r2');
      $('#slideMenu').toggle();
});

.r2 { right: 200px }

I am not able to use the function animate() properly.

Edit
Report