PRO

Detroit Paris Slider

An infinite image stream whose slides grow along an exponential baseline. Wheel, drag, and idle motion push one scroll target while each poster wraps through the track and swaps images as it re-enters.

Component

Perpetual Motion

Install
npx shadcn@latest add https://ui.aryank.space/r/detroit-paris-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[]10 Compronents-hosted JPGsPoster images wrapped through the stream.
titlestring"Perpetual Motion"Display title placed over the slider.
lerp / scrollSpeednumber0.075 / 3.5Smoothing and input sensitivity.
minSize / growth / aspectnumber0.1 / 0.25 / 0.8The math that determines slide sizes along the track.
autoplay / autoplaySpeedboolean / numbertrue / 0.004Idle motion so the stream moves before user input.
Customize
imagesasset-url

Ten poster images hosted through https://ui.aryank.space/assets/detroit-paris-slider/slide-img-1.jpg and the numbered set.

titletext

Large header over the stream.

growth / scrollSpeedtext

Exponential spacing strength and pointer/wheel sensitivity.

Dependencies
None.