Marquee
Create continuous scrolling animation for content
Source
LLM docs
Docs
Package
Usage
Marquee component creates a continuous scrolling animation for its children.
It is commonly used for displaying logos, testimonials, or any repeating content.
Pause on hover
Set pauseOnHover prop to pause the animation when the user hovers over the component:
Vertical orientation
Set orientation="vertical" to scroll content vertically. Note that you need to set
a fixed height on the container for vertical scrolling:
Multiple rows
You can combine multiple Marquee components with different directions to create
more complex layouts:
Fade edges
By default, Marquee displays gradient fade on edges to create a smooth transition effect.
You can customize the fade using the following props:
fadeEdges– enables/disables fade gradient (default:true)fadeEdgeColor– color of the fade gradient (default:var(--mantine-color-body))fadeEdgeSize– size of the fade area (default:5%)
Default fade (5%)
Larger fade (15%)
Custom fade color
No fade
Customization
Use the following props to customize the marquee behavior:
reverse– reverses animation directionpauseOnHover– pauses animation on hoverorientation–horizontal(default) orverticalscroll directionrepeat– number of times children are repeated for seamless scrolling (default: 4)duration– animation duration in ms (default: 40000)gap– gap between repeated children, key oftheme.spacingor any valid CSS value