I would like to make a 2d car animation like hill climb racing using the scroll wheel to go forward and backward. I'm using javascript, html, and css

前端 未结 0 622
攒了一身酷
攒了一身酷 2021-01-13 06:58

I\'m just wondering how to use the mouse scroll listener. If you scroll down car accelerates forward and if you scroll up car decelerates and goes in reverse.

How can

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