Timeline

Smoothly animated timeline slider with resizable handles for interactive use.

Loading...

Installation

npx shadcn@latest add @scrollxui/timeline 

Usage

import { Timeline, TimelineText } from '@/components/ui/timeline';
<Timeline
  rotation={-2.76}
  containerClassName='border-blue-500'
  handleClassName='border-blue-500'
  handleIndicatorClassName='bg-blue-500'
>
  <TimelineText>Video Editor</TimelineText>
</Timeline>

Examples


Custom

Loading...

API Reference

Timeline

Smoothly animated timeline slider with resizable handles for interactive use.

Props

PropertyTypeDefaultDescription
childrenReactNoderequired
Content inside the timeline container. Required in Timeline.
rotationnumber-2.76
Rotation angle of the timeline in degrees.
initialLeftnumber0
Initial left handle position in pixels.
minWidthnumber56
Minimum width in pixels between left and right handles.
classNamestring-
Optional class applied to the main timeline wrapper.
containerClassNamestring-
Optional class applied to the timeline content container.
handleClassNamestring-
Optional class applied to both left and right draggable handles.
handleIndicatorClassNamestring-
Optional class applied to the small indicator inside handles.

Built withby Ahdeetai.