Skip to content

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

fix: update marquee docs

Dillion Vermac08ae917eb37
diff --git a/content/docs/components/marquee.mdx b/content/docs/components/marquee.mdx
index bee671fd..934b16c5 100644
--- a/content/docs/components/marquee.mdx
+++ b/content/docs/components/marquee.mdx
@@ -37,26 +37,28 @@ npx shadcn@latest add "https://magicui.design/r/marquee"
<Step>Add the required CSS animations</Step>
-Add the following animations to your global CSS file inside the `@theme inline` block (e.g., `app/globals.css` or similar):
-
-```css title="app/globals.css" {1-2,4-19}
---animate-marquee: marquee var(--duration) infinite linear;
---animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
-
-@keyframes marquee {
- from {
- transform: translateX(0);
- }
- to {
- transform: translateX(calc(-100% - var(--gap)));
- }
-}
-@keyframes marquee-vertical {
- from {
- transform: translateY(0);
+Add the following animations to your global CSS file.
+
+```css title="app/globals.css" {2-3, 4-20}
+@theme inline {
+ --animate-marquee: marquee var(--duration) infinite linear;
+ --animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
+
+ @keyframes marquee {
+ from {
+ transform: translateX(0);
+ }
+ to {
+ transform: translateX(calc(-100% - var(--gap)));
+ }
}
- to {
- transform: translateY(calc(-100% - var(--gap)));
+ @keyframes marquee-vertical {
+ from {
+ transform: translateY(0);
+ }
+ to {
+ transform: translateY(calc(-100% - var(--gap)));
+ }
}
}
```