waypoints icon indicating copy to clipboard operation
waypoints copied to clipboard

Improve Getting started docs: Add npm example

Open sjelfull opened this issue 9 years ago • 3 comments

It would be great if the Getting started section was improved to include how you would use Waypoints with npm.

sjelfull avatar Oct 06 '16 12:10 sjelfull

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...
})

jamespantalones avatar Oct 19 '16 16:10 jamespantalones

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.

sjelfull avatar Oct 20 '16 09:10 sjelfull

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.

sjelfull avatar Oct 20 '16 09:10 sjelfull