How to stop a background gif on hover and when the mouse isn't moving and resume the gif when its moving and on hover in JavaScript?

前端 未结 0 1246
慢半拍i
慢半拍i 2021-02-10 07:47

I am trying to stop the background gif when I am on another window because it uses up resources, is there a way to stop this when the body doesn\'t detect any mouse movement or

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