🔧 Created defaults from multiple sources

This commit is contained in:
z3rOR0ne 2023-11-10 23:39:29 -08:00
parent 70aab87afe
commit d8453b4ab0
2 changed files with 71 additions and 0 deletions

10
defaults.js Normal file
View file

@ -0,0 +1,10 @@
/* Stop Animations During Window Resizing Trick
* https://css-tricks.com/stop-animations-during-window-resizing/*/
let resizeTimer;
window.addEventListener("resize", () => {
document.body.classList.add("resize-animation-stopper");
clearTimeout(resizeTimer);
resizeTimer = setTimeout(() => {
document.body.classList.remove("resize-animation-stopper");
}, 400);
});