Reel

A scrolling media strip that displays images and videos in flowing rows.

Loading...

Installation

npx shadcn@latest add @scrollxui/reel 

Usage

import { Reel, ReelItem } from "@/components/ui/reel";
const items: ReelItem[] = [
  { id: '1', type: 'image', src: '/photo.jpg' },
  { id: '2', type: 'video', src: '/clip.mp4' },
];
 
<Reel items={items} />

Examples


Pause On Hover

Loading...

API Reference

Reel

A scrolling media strip that displays images and videos in flowing rows.

Props

PropertyTypeDefaultDescription
itemsReelItem[]
Array of media items to display.
rowsnumber3
Number of scrolling rows.
repeatnumber9
Times items duplicate per row for seamless looping.
pauseOnHoverbooleantrue
Pauses scrolling when hovered.
applyMaskbooleantrue
Fades out left and right edges.
durationnumber30
Scroll speed in seconds.
directionalternate | forward | reversealternate
Scroll direction across rows.
classNamestring
Custom styles on the wrapper.
idstring
Unique identifier for each item.
typeimage | video
Media type of the item.
srcstring
URL of the media file.

Built withby Ahdeetai.