Stickyfloat : jQuery Animated Fixed Position Element Plugin

Editor's note (2026): This plugin dates from 2014 and is no longer maintained. Today, CSS position: sticky does the same job natively, with no JavaScript (see below).

Stickyfloat is a jQuery plugin that keeps an element floating in view as you scroll, while staying within its parent container. A normal position: fixed element is detached from the layout and hard to use in fluid designs; Stickyfloat solved that with minimal code.

Features

  • Handles many floating elements, each with its own settings
  • Keeps each element's movement within its parent's area
  • Uses JavaScript easing (CSS transitions were recommended where supported)
  • Options such as sticking to the bottom and animation style
  • Lightweight and efficient

The modern alternative: position: sticky

.sidebar-widget {
  position: sticky;
  top: 1rem; /* distance from the top of the viewport */
}

The element scrolls normally until it reaches the top offset, then stays in place, but only within its parent container, exactly like Stickyfloat. It's supported in all modern browsers.


Need help with your website's layout and user experience? I.T. For Less can help — contact us.

Development