PRO

Hour Timeline Slider

Click anywhere to wipe in the next slide with a clip-path reveal while an elastic timeline of hours redistributes its flex spacing, compressing the past and stretching the present.

Component

A day in the city, told hour by hour

Archive

Slide 1
Slide 2
Slide 3
Slide 4
Slide 5

1pm

2pm

3pm

4pm

5pm

6pm

7pm

8pm

Install
npx shadcn@latest add https://ui.aryank.space/r/hour-timeline-slider.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
imagesstring[]5 BLANK-hosted JPGsSlides wiped in by the clip-path reveal.
durationnumber1.5Length of the wipe and timeline redistribution.
Customize
imagesasset-url

The five looping slides.

navLeft / navRight / footerLeft / footerRighttext

The chrome copy around the slider.

Dependencies
gsap