UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: publish all wip
Dillion Vermaa62f80c08da3
diff --git a/content/components/animated-lines.mdx b/content/components/animated-lines.mdxnew file mode 100644index 00000000..0aa5c67a--- /dev/null+++ b/content/components/animated-lines.mdx@@ -0,0 +1,56 @@+---+title: Animated Lines+date: 2023-12-19+summary: A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.+author: dillionverma+published: false+video: https://cdn.magicui.design/animated-lines.mp4+---++<ComponentPreview name="animated-lines-demo" />++<Steps>++<Step>++## Prerequisites++```bash+npm install -D tailwindcss clsx tailwind-merge framer-motion+```++Copy and paste the following code into your project.++```typescript+// lib/utils.ts+import clsx, { ClassValue } from "clsx";+import { twMerge } from "tailwind-merge";++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));+}+```++</Step>++<Step>++## Installation++Copy and paste the following code into your project.++```text+components/magicui/animated-lines.tsx+```++<ComponentSource name="animated-lines" />++</Step>++</Steps>++## Props++| Prop | Type | Description | Default |+| --------- | ------ | -------------------------------- | ------- |+| className | string | The class name for the component | "" |diff --git a/registry/components/example/animated-lines-demo.tsx b/registry/components/example/animated-lines-demo.tsxnew file mode 100644index 00000000..e0b0061c--- /dev/null+++ b/registry/components/example/animated-lines-demo.tsx@@ -0,0 +1,9 @@+import AnimatedLines from "@/registry/components/magicui/animated-lines";++export default function AnimatedListDemo() {+ return (+ <div className="relative flex max-h-[500px] min-h-[500px] w-full flex-col overflow-hidden rounded-lg border bg-background p-6 shadow-lg">+ <AnimatedLines />+ </div>+ );+}diff --git a/registry/components/magicui/animated-lines.tsx b/registry/components/magicui/animated-lines.tsxnew file mode 100644index 00000000..c8bf2f36--- /dev/null+++ b/registry/components/magicui/animated-lines.tsx@@ -0,0 +1,34 @@+export default function AnimatedLines() {+ return (+ <svg+ viewBox="0 0 1005 758"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ className="stroke-[5px] [mask-repeat:no-repeat] [mask-size:40px]"+ >+ <path+ d="M0.000366211 3C382.5 3 313 362.999 1005 362.999"+ stroke="white"+ />++ <path d="M1004.78 383.5H0.000366211" stroke="white" />+ <path+ d="M1005 404.5C313 404.5 379.5 755.5 0.000366211 755.5"+ stroke="white"+ />++ <path+ d="M0.000366211 3C382.5 3 313 362.999 1005 362.999"+ className="animate-line stroke-blue-500 [mask-image:linear-gradient(to_right,transparent,black,transparent)]"+ />+ <path+ d="M1004.78 383.5H0.000366211"+ className="animate-line stroke-red-500 [mask-image:linear-gradient(to_right,transparent,black,transparent)]"+ />+ <path+ d="M1005 404.5C313 404.5 379.5 755.5 0.000366211 755.5"+ className="animate-line stroke-green-500 [mask-image:linear-gradient(to_right,transparent,black,transparent)]"+ />+ </svg>+ );+}