An open API service indexing awesome lists of open source software.

https://github.com/bubkoo/position-sticky-polyfill

position: sticky; The shim/polyfill!
https://github.com/bubkoo/position-sticky-polyfill

Last synced: 3 days ago
JSON representation

position: sticky; The shim/polyfill!

Awesome Lists containing this project

README

          

position-sticky-polyfill
========================

- © bubkoo@163.com
- MIT License.

### Usage

Include the polyfill:

```javascript

```
Next, initialize your sticky nodes:

```javascript
// sticky top
sticky('#my-element', { top: 10 }, callback);
// or
sticky('#my-element', 10, callback);
// sticky bottom
sticky('#my-element',{ bottom: 10 },callback);
```
Note: callback is optional.

### Browser Support

- IE6+
- Firefox
- Chrome
- Safari
- Opera