Skip to content

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

🐛 fix: change margin to 0 for ticker

Dillion Verma1616be615daf
diff --git a/registry/components/magicui/number-ticker.tsx b/registry/components/magicui/number-ticker.tsx
index 0ee66b48..fee005d1 100644
--- a/registry/components/magicui/number-ticker.tsx
+++ b/registry/components/magicui/number-ticker.tsx
@@ -20,7 +20,7 @@ export default function NumberTicker({
damping: 60,
stiffness: 100,
});
- const isInView = useInView(ref, { once: true, margin: "-100px" });
+ const isInView = useInView(ref, { once: true, margin: "0px" });
useEffect(() => {
isInView &&