🔧 Created defaults from multiple sources
This commit is contained in:
parent
70aab87afe
commit
d8453b4ab0
2 changed files with 71 additions and 0 deletions
10
defaults.js
Normal file
10
defaults.js
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue