@gfazioli/mantine-marquee
A Mantine component that allows you to create a marquee effect with a list of elements.
Installation
After installation import package styles at the root of your application:
You can import styles within a layer @layer mantine-marquee by importing @gfazioli/mantine-marquee/styles.layer.css file.
Usage
The Marquee component allows you to create a marquee effect with any content.
Fade edges
The fadeEdges prop adds a smooth fade effect at the edges of the scroll area using CSS mask-image.
It accepts true, "linear", "ellipse", or "rect" — passing true is equivalent to "linear".
Use fadeEdgesSize to control how much of the edge is faded ("xs" | "sm" | "md" | "lg" | "xl" or a percentage string).
Linear
fadeEdges="linear" applies a gradient mask on the leading and trailing scroll edges.
This works for both horizontal and vertical layouts, and it is ideal for content that enters and exits from the sides.
Ellipse
fadeEdges="ellipse" applies a radial elliptical mask that fades all around the border.
This is orientation-independent — it works identically for horizontal and vertical marquees.
It is particularly effective for logo carousels, icon showcases, or any content where a vignette effect is desired.
Circle
Since the ellipse mask uses radial-gradient(ellipse closest-side), applying fadeEdges="ellipse" to a square element
(w and h are equal) produces a perfectly circular mask. No additional prop is needed — the geometry does the work.
John Doe
Jane Doe
Jessica Doe
Jack Doe
Jill Doe
John Doe
Jane Doe
Jessica Doe
Jack Doe
Jill Doe
Rect
fadeEdges="rect" uses two intersected linear gradients (mask-composite: intersect) to fade all 4 edges independently.
The horizontal gradient controls left/right, the vertical gradient controls top/bottom — at the corners the alpha values multiply naturally, creating a smooth diagonal falloff.
fadeEdgesSize accepts a [horizontal, vertical] tuple for independent axis control.
For example fadeEdgesSize={['lg', 'xs']} applies a large fade on left/right and a small fade on top/bottom.
Multiple
The Marquee component allows you to create a marquee effect with multiple items.
Vertical
The Marquee component allows you to create a marquee effect with multiple items in vertical direction.
Responsive vertical
The vertical prop accepts a responsive breakpoint object in addition to a plain boolean.
This lets you switch between vertical and horizontal layouts at different viewport widths
using Mantine's useMatches hook under the hood.
Responsive gap
The gap prop also accepts a responsive breakpoint object.
This is useful when switching layout direction at a breakpoint — you can pair it with a different gap size.
Example: Testimonials
Your customers feedback is important to you. Use Marquee to display your testimonials.
John Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jane Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jessica Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jack Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jill Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
John Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jane Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jessica Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jack Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Jill Doe
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Example: Branding
One of the most common use cases for Marquee is to create branding banners.