LoginSignup
3

More than 1 year has passed since last update.

tiktok scroller

Last updated at Posted at 2021-08-12

たいくつなお仕事のおともに、tiktokスクローラー。
カーソルがwindowにあるときは止まります。

consoleにはっつける
var flag = true
document.body.onmouseover = () => {flag = false}
document.body.onmouseout = () => {flag = true}
setInterval(()=>{
  if (flag) window.scrollBy(0, 300)
}, 3000);

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3