waypoints
waypoints copied to clipboard
Improve Getting started docs: Add npm example
It would be great if the Getting started section was improved to include how you would use Waypoints with npm.
This way works well for me:
require('waypoints/lib/noframework.waypoints.js')
const down = new Waypoint({
element: el,
offset: offset,
continuous: false,
handler: ( direction ) => {
etc, etc, etc...
})
It does indeed work well for me as well, but the docs are limited in describing the multiple ways you can use it today.
The Getting started section has no specific instructions on how to use it with npm.
It does indeed work well for me too, but the docs are limited in describing the multiple ways you can use it today.
The Getting started section has no specific instructions on how to use it with npm.