refactor: reduce text flip animation duration and adjust padding

This commit is contained in:
2025-10-23 04:27:55 +02:00
parent f2cb22ef66
commit 8f8d45c7ff

View File

@@ -6,7 +6,7 @@ import { cn } from "@/lib/utils";
export const LayoutTextFlip = ({
text = "Build Amazing",
words = ["Landing Pages", "Component Blocks", "Page Sections", "3D Shaders"],
duration = 3000,
duration = 1500,
}: {
text: string;
words: string[];
@@ -33,7 +33,7 @@ export const LayoutTextFlip = ({
<motion.span
layout
className="relative w-fit overflow-hidden px-8 py-2 font-neuton font-medium italic tracking-tight"
className="relative w-fit overflow-hidden px-2 py-2 font-neuton font-medium italic tracking-tight"
>
<AnimatePresence mode="popLayout">
<motion.span