ember-cli-sticky
v1.0.0
Published
Ember addon for Sticky.js.
Downloads
1,247
Readme
ember-cli-sticky
Ember addon to integrate jQuery plugin Sticky.js.
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
{{! ./templates/index.hbs }}
{{#sticky-container options=myStickyOptions}}
<nav ... />
{{/sticky-container}}
// ./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/.