Skip to content

Commit dd21977

Browse files
committed
fix animation export only in nodejs/server side
1 parent 1ce0f46 commit dd21977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/animateCSS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ function removeAnimateCSS (element, animation) {
155155
node.classList.remove("animate__animated", animationName);
156156
node.style.removeProperty("--animate-duration");
157157
}
158-
module.exports = { AnimateCSSIn, AnimateCSSOut };
158+
if (typeof window === "undefined") module.exports = { AnimateCSSIn, AnimateCSSOut };

0 commit comments

Comments
 (0)