Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: stop_before_op…

This branch is 1 commit ahead, 2 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
js
style
README.md
index.html
multi.html

README.md

jQuery static sidebar plugin.

Simple lightweight plugin for adding a "follow me" sidebar that follows the user down the page as they scroll.

Usage

Supports multiple objects - no specific css is required as it will position elements according to original offset and closest positioned ancestor.

$(selector).stickySidebar(options)

Options

  • speed (default = 150) - the duration of the animation
  • easing (default = 'linear') - the easing to use for the animation
  • padding (default = 10) - amount of padding from top of window
  • constrain (default = false) - set true to stop from scrolling out of parent

Methods

remove - removes the selected sticky boxes

$(selector).stickySidebar("remove")

destroy - removes all sticky boxes and event listeners

$(selector).stickySidebar("destroy")
Something went wrong with that request. Please try again.