FIXED AD
Project Page - https://github.com/yairEO/stickyfloat
Example:
jQuery('.menu').stickyfloat({ duration: 400 });
Or to update a floating element you might do:
jQuery('.menu2').stickyfloat( 'update',
{
duration : 0,
stickToBottom:true
});
Parameters:
duration (default: 200)
The duration of the animationstartOffset (default: auto - parent's offset from top)
The amount of scroll offset after which the animations kicks in, because the idea is to start the animation only when the user has scrolled to a point where the element needs to start following him.
Value can be empty or auto, which are the same, or a numberoffsetY (default: auto - parent's padding-top)
The offset from the top after object's animation.
Value can be empty or auto, which are the same, or a numberdelay (default: 0)
Delay in milliseconds until the animnations startseasing (default: linear)
Easing function (jQuery has by default only 'swing' & 'linear')lockBottom (default: true)
Set to false if you don't want your floating box to stop at parent's bottomstickToBottom (default: false)
Set to true to make the floating menu stick to the bottomonReposition (default: undefined)
a callback to be invoked when the floated element is repositionedscrollArea (default: window)
The DOM element which stickyfloat should track it's scroll position (for situations with inner scroll)