1$('#hello').hide('slide', {direction: 'left'}, 1000); requires the jQuery-ui library. See http://www.jqueryui.com
1This should work:
2
3$('#menu').click(function(event) {
4 event.preventDefault(); // because it is an anchor element
5 $('.whole').animate({
6 right: '200px'
7 });
8 $('#slideMenu').toggle();
9});
10But your position property should already be set in CSS or you might not get exactly what you need.
11
12Working JSFiddle
13
14To explain: the function takes a JS object of properties, like this:
15
16{
17 right: '200px',
18 somethingElse: 'value',
19 myboolean: true
20}
21you can also assign this to a var and pass it to animate:
22
23var cssProperties = { right: '200px' }
24
25$('#menu').click(function() {
26 $('.whole').animate(cssProperties);
27});
28You can pass other arguements as readable in the documentation.