How to calculate the speed of an animation in seconds based on current pageYOffset and previousPageYOffset?

前端 未结 0 1300
天涯浪人
天涯浪人 2020-12-12 18:28

I\'m trying to rotate a wheel based on user interaction. If the user is accelerating his scroll, the wheel should spin faster. Likewise, if the user is decelerating his scro

相关标签:
回答
  • 消灭零回复
提交回复
热议问题