<commit_before># Lite Scroll (Version 0.2.1)
Lite Scroll is a light alternative to iScroll designed to be super light, easily extendable and highly efficient.

Script example (http://foxx.io/litescroll/).

## Usage
The script accepts a number of parameters:

```javascript
var element = document.getElementById('scroll');

var scroll = LiteScroll(element, options);
```

The structure of the HTML follows the syntax:

```html
<div id="scroll">
    <div class="content">
        Content
    </div>
</div>
```

## Options

All avalible options are:

```javascript
var options = {
    scrollX: false,
    scrollY: true,
    snap: false,
    snapSpeed: '300ms',
    dynamicResize: true,
    lockScroll: true,
    momentum: true,
    momentumSpeed: .008
};
```

### 'scrollX' and 'scrollY'
Defined if the element can be scrolled on the X and Y axis.

### 'snap'
Defines if the scroller will snap to elements inside the content container.

### 'snapSpeed'
Defines the length of time the scroller will take to animate snapping.

### 'dynamicResize'
Defines if the script will resize the scroller upon the window changing.

### 'lockScroll'
Defines if the script will lock the scroll axis once the user starts scrolling.

### 'momentum'
Defines if scrolling will have momentum. This will be disabled if snapping is enabled.

### 'momentumFalloff'
This is the speed at which the momentum slows based on pixels per milisecond.

## Methods
The script currently has one useful method avalible.

```javascript
var scroll = LiteScroll(element, options);

// Will scroll the defined coordinates (px, px, ms, transitionTimingFunction)<commit_msg>Noticed a mistake in the readme<commit_after># Lite Scroll (Version 0.2.1)
Lite Scroll is a light alternative to iScroll designed to be super light, easily extendable and highly efficient.

Script example (http://foxx.io/litescroll/).

## Usage
The script accepts a number of parameters:

```javascript
var element = document.getElementById('scroll');

var scroll = LiteScroll(element, options);
```

The structure of the HTML follows the syntax:

```html
<div id="scroll">
    <div class="content">
        Content
    </div>
</div>
```

## Options

All avalible options are:

```javascript
var options = {
    scrollX: false,
    scrollY: true,
    snap: false,
    snapSpeed: '300ms',
    dynamicResize: true,
    lockScroll: true,
    momentum: true,
    momentumFalloff: .008
};
```

### 'scrollX' and 'scrollY'
Defined if the element can be scrolled on the X and Y axis.

### 'snap'
Defines if the scroller will snap to elements inside the content container.

### 'snapSpeed'
Defines the length of time the scroller will take to animate snapping.

### 'dynamicResize'
Defines if the script will resize the scroller upon the window changing.

### 'lockScroll'
Defines if the script will lock the scroll axis once the user starts scrolling.

### 'momentum'
Defines if scrolling will have momentum. This will be disabled if snapping is enabled.

### 'momentumFalloff'
This is the speed at which the momentum slows based on pixels per milisecond.

## Methods
The script currently has one useful method avalible.

```javascript
var scroll = LiteScroll(element, options);

// Will scroll the defined coordinates (px, px, ms, transitionTimingFunction)
{'fraction_non_alphanumeric': 0.09573170731707317, 'fraction_numerical': 0.00548780487804878, 'mean_word_length': 4.158805031446541, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1804344', 'n_tokens_mistral': 961, 'n_tokens_neox': 917, 'n_words': 414}