Skip to content

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

🐛 fix: fix marquee on magicui

Dillion Verma971587de7398
diff --git a/components/landing/testimonials.tsx b/components/landing/testimonials.tsx
index 2bec1e96..16775a99 100644
--- a/components/landing/testimonials.tsx
+++ b/components/landing/testimonials.tsx
@@ -42,7 +42,7 @@ export default async function Testimonials() {
<strong>real people</strong> are saying about Magic UI on Twitter.
</h4>
</FadeIn>
- <div className="relative flex flex-col gap-4">
+ <div className="relative flex flex-col">
<Marquee className="max-w-screen [--duration:120s]" pauseOnHover>
{firstRow.map((id, idx) => (
<FadeIn delay={0.06 + idx * 0.04} key={idx}>
diff --git a/components/pricing/testimonials.tsx b/components/pricing/testimonials.tsx
index f8c05cf3..731c72ce 100644
--- a/components/pricing/testimonials.tsx
+++ b/components/pricing/testimonials.tsx
@@ -32,7 +32,7 @@ export default async function Testimonials() {
const secondRow = tweets.slice(tweets.length / 2);
return (
- <section id="testimonials" className="py-14">
+ <section id="testimonials" className="container py-14">
<h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
What People Are Saying
</h2>
@@ -40,7 +40,7 @@ export default async function Testimonials() {
Don't just take our word for it. Here's what{" "}
<strong>real people</strong> are saying about Magic UI on Twitter.
</h4>
- <div className="flex flex-col gap-4">
+ <div className="relative flex flex-col">
<Marquee className="max-w-screen [--duration:120s]" pauseOnHover>
{firstRow.map((id, idx) => (
<FadeIn delay={0.06 + idx * 0.04} key={idx}>
@@ -65,6 +65,8 @@ export default async function Testimonials() {
</FadeIn>
))}
</Marquee>
+ {/* <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-white dark:from-background"></div>
+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-white dark:from-background"></div> */}
</div>
</section>
);
diff --git a/registry/components/magicui/marquee.tsx b/registry/components/magicui/marquee.tsx
index 98180016..d12860f1 100644
--- a/registry/components/magicui/marquee.tsx
+++ b/registry/components/magicui/marquee.tsx
@@ -28,7 +28,7 @@ export default function Marquee({
>
<div
className={cn(
- "flex h-max w-max transform-gpu items-stretch gap-[--gap] p-4",
+ "flex h-max w-max transform-gpu items-stretch gap-[--gap] p-2",
{
"[animation-direction:reverse]": reverse,
"hover:[animation-play-state:paused]": pauseOnHover,