Skip to content

salsify/ember-cli-sticky

Repository files navigation

ember-cli-sticky Build Status

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

See Sticky.js options

{{!  ./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/.