@odopod/odo-affix
Version:
Makes an element fixed position while its within a container.
24 lines (14 loc) • 452 B
Markdown
> Makes an element fixed position while its within a container.
```shell
npm install @odopod/odo-affix --save
```
```js
import OdoAffix from '@odopod/odo-affix';
const affix = new OdoAffix(document.querySelector('.js-my-sidebar'));
```
Visit the [Odo component directory][permalink] for demos, code examples, and documentation.
[]: http://code.odopod.com/odo-affix/