Skip to content

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

fix: fixing the morphing text to work on firefox too (#469)

Arghya Dasa780bf270b81
diff --git a/registry/default/magicui/morphing-text.tsx b/registry/default/magicui/morphing-text.tsx
index f7cb82c7..78266fbb 100644
--- a/registry/default/magicui/morphing-text.tsx
+++ b/registry/default/magicui/morphing-text.tsx
@@ -110,7 +110,11 @@ const Texts: React.FC<Pick<MorphingTextProps, "texts">> = ({ texts }) => {
};
const SvgFilters: React.FC = () => (
- <svg id="filters" className="hidden" preserveAspectRatio="xMidYMid slice">
+ <svg
+ id="filters"
+ className="fixed h-0 w-0"
+ preserveAspectRatio="xMidYMid slice"
+ >
<defs>
<filter id="threshold">
<feColorMatrix