waypoints icon indicating copy to clipboard operation
waypoints copied to clipboard

Offset with Inview?

Open hackuun opened this issue 8 years ago • 2 comments

I there an option to use offset with Inview?

I tried following this, but this is doesn't work

let waypoint = new Waypoint.Inview({
      element: document.querySelector('.waypoint'),
      entered: (direction) => {
        console.log(direction)
        this.waypointed = true
      },
      exited: (direction) => {
        console.log(direction)
        this.waypointed = false
      },
      offset: {
        top: 150,
        bottom: 150
      }
    })

Found here - https://github.com/imakewebthings/waypoints/issues/450 How to use this?

hackuun avatar Oct 04 '17 12:10 hackuun

I literally just came looking for this.

It doesn't look like this was ever implemented, was it?

travisbell avatar Nov 24 '17 22:11 travisbell

@iamdubx @travisbell Take a look over in this issue for some custom code that should help: https://github.com/imakewebthings/waypoints/issues/450#issuecomment-228154548

stuntbox avatar Dec 27 '17 08:12 stuntbox