aboutsummaryrefslogtreecommitdiff
path: root/source/96/src/components/animations
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2025-12-01 00:45:09 +0000
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2025-12-01 00:45:09 +0000
commitcbc17db44c18a19702938b3fe70ea3de81d326ea (patch)
treec44ef96fc9e66ecb013e99b5d8e2dc8ce333ffc9 /source/96/src/components/animations
parent3ea515a495e54d63f4d16c1448eb09eba527e976 (diff)
downloadzue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar
zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar.gz
zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar.bz2
zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.tar.xz
zue.dev-cbc17db44c18a19702938b3fe70ea3de81d326ea.zip
make it work
Diffstat (limited to 'source/96/src/components/animations')
-rw-r--r--source/96/src/components/animations/FadeIn.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/96/src/components/animations/FadeIn.js b/source/96/src/components/animations/FadeIn.js
new file mode 100644
index 0000000..21589ce
--- /dev/null
+++ b/source/96/src/components/animations/FadeIn.js
@@ -0,0 +1,17 @@
+"use client";
+
+import { motion } from "motion/react";
+
+export default ({ children, props }) => {
+ const { duration = 1, delay = 0 } = props || {};
+
+ return (
+ <motion.div
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ transition={{ duration, delay }}
+ >
+ {children}
+ </motion.div>
+ );
+};