How do I pause a requestAnimationFrame and resume on specific time (in React)?

前端 未结 0 1099
北海茫月
北海茫月 2021-02-02 05:09

I am making a timer hook in React, but I want the ability to start and pause the timer. I\'m using requestAnimationFrame so I can get the percentage of the progress.

My c

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