Show animations, fix export only on server side (#3649)

fix #3644 so only on server side
This commit is contained in:
sam detweiler
2024-12-08 09:24:39 -06:00
committed by GitHub
parent 76fac78909
commit 39ab651319
2 changed files with 2 additions and 1 deletions

View File

@@ -155,4 +155,4 @@ function removeAnimateCSS (element, animation) {
node.classList.remove("animate__animated", animationName);
node.style.removeProperty("--animate-duration");
}
module.exports = { AnimateCSSIn, AnimateCSSOut };
if (typeof window === "undefined") module.exports = { AnimateCSSIn, AnimateCSSOut };