waypoints
waypoints copied to clipboard
Offset with Inview?
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?
I literally just came looking for this.
It doesn't look like this was ever implemented, was it?
@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