https://github.com/salsify/ember-cli-sticky
https://github.com/salsify/ember-cli-sticky
npm
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/salsify/ember-cli-sticky
- Owner: salsify
- License: mit
- Created: 2015-06-19T17:19:48.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T15:10:02.000Z (over 2 years ago)
- Last Synced: 2025-05-19T11:23:02.535Z (about 1 year ago)
- Topics: npm
- Language: JavaScript
- Size: 424 KB
- Stars: 11
- Watchers: 51
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-cli-sticky [](https://travis-ci.org/salsify/ember-cli-sticky)
Ember addon to integrate jQuery plugin [Sticky.js](http://stickyjs.com/).
* `ember install ember-cli-sticky`
* Ember.js v3.4 or above
* Ember CLI v2.13 or above
* Node.js v12 or above
* `ember server`
* Visit your app at http://localhost:4200.
## Usage
See [Sticky.js options](https://github.com/garand/sticky#options)
```hbs
{{! ./templates/index.hbs }}
{{#sticky-container options=myStickyOptions}}
{{/sticky-container}}
```
```js
// ./controllers/index.js
import Ember from 'ember';
export default Ember.Controller.extend({
myStickyOptions: {
topSpacing: 30 //px, default: 0
},
});
```
Installation
------------------------------------------------------------------------------
* `ember test`
* `ember test --server`
Usage
------------------------------------------------------------------------------
For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).