Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #2 from jrmlstf/patch-1

Update js/stickysidebar.jquery.js
latest commit 401107f54d
Phil Parsons authored
Failed to load latest commit information.
js Update js/stickysidebar.jquery.js
style added the constraint option
README.md added the constraint option
index.html Cleaning up and adding demos
multi.html updated demo

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.