Andarist / use-smooth-scroll

React hook which gives a smooth scrolling function.
42 stars 4 forks source link

custom easing support? #4

Open sbtly opened 4 years ago

sbtly commented 4 years ago

It would be nice to do custom easing like below.

scrollTo(0, {duration: 1000, easing: [0.43, 0.13, 0.23, 0.96])
Andarist commented 4 years ago

You can write a function that would be able to interpret this. I dont see much value in supporting a syntax like this if it can be implemented in the userland just fine