Added better transitions

When the header leaves the page it now scrolls off the top of the page
with the element it is bound to.