<commit_before># sticky.js

Sticky headers, done as simply and as smoothly as possible, with no jumping when the transition occurs.

## Basic Usage

```javascript
$('.header').sticky()
```

## Intermediate Usage

You have a header, but there's something else above it?

```javascript
$('.header').sticky({
  offsetFrom: $('.previous-element')
})
```

## Advanced Usage

You have a header, but there is more than one element above it, and some might not always be visible?

```javascript
$('.header').sticky({
  offsetFrom: $('.previous-element, .other-previous-element')
})
```<commit_msg>Update me read me<commit_after># sticky.js

Sticky elements, done as simply and as smoothly as possible, with no jumping when the transition occurs.

## Usage

```javascript
$('.header').sticky()
```

## Customisation

Sticky adds a couple of CSS classes to your stylesheet. You can change the appearance of stuck elements by customising `.stuck` in your CSS. Be careful when playing with margins or changing the size of the element!
{'fraction_non_alphanumeric': 0.11937377690802348, 'fraction_numerical': 0.0, 'mean_word_length': 4.715083798882682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4112591', 'n_tokens_mistral': 293, 'n_tokens_neox': 274, 'n_words': 129}