Skip to content

Instantly share code, notes, and snippets.

View CheapSk8's full-sized avatar

Daved CheapSk8

  • Perficient Inc
  • Nashville, TN
View GitHub Profile
(function() {
if (typeof(jQuery) === 'undefined') { return; }
// ScrollFixed plugin by daved
(function ($) {
var ScrollFix = function ($ele, opts) {
var sf = this;
sf.offset = opts.offSet || 0;
sf.spacer = $('<div/>').addClass('scrollFix-spacer').attr('class', $ele.attr('class'));
sf.window = $(window).on('scroll', $.proxy(checkPos, this));