Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/matthewpattell/sticky-float

Plugin sticky float for html elements
https://github.com/matthewpattell/sticky-float

Last synced: about 1 month ago
JSON representation

Plugin sticky float for html elements

Awesome Lists containing this project

README

        

# sticky-float
Plugin sticky float for html elements

Demo
-----
Go to demo page

Installation
-----

With bower:
```bash
$ bower install jquery-stickyfloat
```

Usage
-----

Include on your web page:

1. jQuery
2. jQuery Throttle plugin

```html

```

Then include this plugin:

```html

```

And simple usage:
```js
$('.example').stickyfloat();
```

Options:
```js
$('.example').stickyfloat({
top: 0, // top margin (number in px | default: 0)
spacer: true, // create spacer (boolean | default: true)
saveWidth: true, // save width element (boolean | default: true)
parent: false, // change parent element (boolean or jQuery element | default: false)
bottomStop: true // stop element in parent bottom (boolean | default: true)
});
```

That's all. Check it.