12.3.0
Callbacks now pass more arguments.
callback_enter
, callback_exit
now pass:
- the DOM element that entered / exited the viewport
- the
IntersectionObserverEntry
that triggered the enter/exit event - the LazyLoad instance
callback_load
, callback_error
, callback_reveal
now pass:
- the DOM element that entered / exited the viewport
- the LazyLoad instance
callback_finish
now passes:
- the LazyLoad instance
The README file has been updated accordingly.