PhatTrienWeb.com

Smart sticky floating box

         
     
         
     
         
         
     
         
     
         

Scroll down, the 'archives' sidebar will follow!

Want your box to float beside you as you scroll, but ONLY in a specific constrained area? or only on it's parents area? - you got it.

  • Extremely useful for side-menus
  • All in one vertical floating solution

Parameters:

  • duration - the duration of the animation
  • tartOffset - the amount of scroll offset after it the animations kicks in
  • offsetY - the offset from the top when the object is animated
  • lockBottom - 'true' by default, set to false if you don't want your floating box to stop at parent's bottom

Example:

jQuery('#menu').stickyfloat({duration: 400});


Back to post | Download jQuery Plugin