code

Introduction

Pushpin is our fixed positioning plugin. You can check out our live examples: the fixed Table of Contents on the right.

jQuery Plugin Initialization


  $(document).ready(function(){
    $('.tabs-wrapper .row').pushpin({ top: $('.tabs-wrapper').offset().top });
  });
        

jQuery Plugin Options

Option NameDescription
TopThe distance in pixels from the top of the page where the element becomes fixed. (Default: 0)
BottomThe distance in pixels from the top of the page where the elements stops being fixed. (Default: Infinity)
OffsetThe offset from the top the element will be fixed at. (Default: 0)