To scroll smoothly to an anchor on your webpage with jQuery, you can use following snippet:
anchor = $(this).attr('href');
If you want to move elements around the screen in multiple steps, you can use CSS animations for that.
If you want to move an element to a screen corner with CSS only, theres a simple Solution with CSS3.
Small Dropdown snippet:
with jQuery, all you need are just 3 lines of js and you have created a dropdown: