Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

Replace <h1> with <span>. (#120)

Morcilla_c9ed1dc7f563
diff --git a/registry/components/magicui/fade-text.tsx b/registry/components/magicui/fade-text.tsx
index 6ddd50f8..7e5adfc9 100644
--- a/registry/components/magicui/fade-text.tsx
+++ b/registry/components/magicui/fade-text.tsx
@@ -53,7 +53,7 @@ export function FadeText({
viewport={{ once: true }}
variants={FADE_ANIMATION_VARIANTS}
>
- <motion.h1 className={className}>{text}</motion.h1>
+ <motion.span className={className}>{text}</motion.span>
</motion.div>
);
}