<commit_before>sticky.js
=========

A jQuery plugin for fixing elements to the top of the page on scroll<commit_msg>Updated README file<commit_after>sticky.js
=========

> A jQuery plugin for fixing elements to the top of the page on scroll

##Overview

This plugin takes `position: fixed` a step further by managing an element's position and only applying fixed position if the element is leaving the top of the scroll area.

##Options

**getMaxVerticalHeight**: function

Description: Limits the distance an element can travel on the vertical plane. This is helpful in cases where an element may collide into other elements below it (ex. footer). *Value is cached on initialization and on window resize.*

Default: 
```
function() { 
  return 0; 
}
```

**minWidth**: integer

Description: Switches an element back to `position: static` once the window width is less than the value provided.

Default: 0

##Methods

**update()** - Forces an update of the element's position

##License

MIT &copy; <NAME>
{'fraction_non_alphanumeric': 0.08855721393034825, 'fraction_numerical': 0.001990049751243781, 'mean_word_length': 4.651685393258427, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '841990', 'n_tokens_mistral': 270, 'n_tokens_neox': 257, 'n_words': 141}