Components
Loading preview...
The marquee component is designed to create a dynamic user experience by continuously scrolling text horizontally. This effect is perfect for highlighting important information, announcements, or news headlines that need to catch the user's attention. The smooth scrolling animation adds movement and liveliness to the interface, making important content more noticeable to users. This example was created using Tailwind CSS and Framer Motion.
@bundui
npx shadcn@latest add https://21st.dev/r/bundui/marquee-effectimport { MarqueeAnimation } from "@/components/ui/marquee-effect";
function MarqueeEffectDoubleExample() {
return (
<div className="flex flex-col gap-4">
<MarqueeAnimation
direction="left"
baseVelocity={-3}
className="bg-green-500 text-white py-2"
>
Bundui Components
</MarqueeAnimation>
<MarqueeAnimation
direction="right"
baseVelocity={-3}
className="bg-purple-500 text-white py-2"
>
Bundui Components
</MarqueeAnimation>
</div>
);
}
export { MarqueeEffectDoubleExample };