Drag to and Expand menu

hello,
newbie here

Alright i know how to drag, how to keep it in bounds, i want to learn how to drag an object and have it expand when it gets to a certian location a la http://www.trollback.com/ (top scroll menu)