Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 720 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 720 Bytes

jQuery Sticky Element Plugin

This is a simple jQuery plugin I developed and used on client projects at White Lion Interactive.

Functionality

Sticky styling can be applied to an element by calling:

$('.my-sticky-element').sticky();

The plugin accepts an options object to allow configuration of:

  • breakpoint - the device width at which the sticky functionality should be disabled
  • offset - the distance from the top of the window at which sticky should start
  • stopper - an element below the sticky element in the DOM where the element should stop sticking

Note: This repo is for code review (read-only) purposes. The plugin relies on dependencies that are not not included in this project.