rocking effect in jquery? [closed]

Is this what you are looking for? http://docs.jquery.com/UI/Effects/Shake You need of course to include jQuery UI, or at least parts of it. EDIT: After your elaboration, I think you are looking to animate the rotation, which can be done with CSS3. http://www.the-art-of-web.com/css/css-animation/ You can animate the position as well, if that helps you.