Ember Waypoints is an easy way to consume the jQuery Waypoints library within an Ember application. It is initially published as an Ember CLI addon, but could have a standalone (aka globals based) if folks are interested.
Resources for jQuery Waypoints
To install run the following:
npm install --save-dev ember-waypoints
Simply use the {{waypoint}}
helper in your template:
on-up
-- This is fired when a waypoint is viewed while scrollingup
. Receives the component instance as an argument.on-down
-- This is fired when a waypoint is viewed while scrollingdown
. Receives the component instance as an argument.action
-- This is fired when a waypoitn is viewed in either direction. Receives the direction ("down"
or"up"
) and the component instance.
The majority of the jquery-waypoints configuration API is available for use. Simply provide one of the following options and it will be used for waypoint being created:
horizontal
triggerOnce
offset
continuous
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
This library is licensed under the MIT License.