Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var howmuch = 200;
- var duration = 2000;
- function move() {
- $("#obj").animate({'marginLeft' : '+=' + howmuch + 'px' }, duration);
- }
- move();
- $("#obj").animate({'marginLeft' : '+=' + howmuch + 'px' } );
- $("#obj").animate({'marginLeft' : '+=' + 5 + 'px' } );
- $("#obj").animate({'marginLeft' : '+=' + 5 + 'px' } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement