Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(function() {
- document.body.style.backgroundPosition = document.body.style.backgroundPosition ? "" : "0 0";
- }, 1000 / 20);
- // replace 20 with the framerate of the gif
- // 1000 / 20 = the amount of milliseconds to wait between every background update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement