v0.3.0
duration
option can now accept a function that:- accepts the jump distance, in
px
, as a parameter, and - returns the duration in milliseconds (h/t @TimPetricola)
- accepts the jump distance, in
- unnecessary default value for
callback
option removed