HomeLabHire Me
ml-ui111 components

Get started

IntroductionInstallation

UI

Dots

Dot AccordionDot CalendarDot CheckboxDot CodeDot CommandDot ContentsDot CountdownDot CrossingDot FuseDot GaugeDot InstallDot KnobDot LogosDot MenuDot PaginationDot PasswordDot Price RangeDot PricingDot ProgressDot QueueDot RatingDot Reading ProgressDot SelectDot SignupDot SliderDot StatusDot StepperDot SwitchDot TabsDot ToastDot TooltipFlip-Dot CounterLED Marquee

Dither

Dither AvatarDither BannerDither CompareDither GlobeDither PortraitDither SkeletonDither TrailDither UploadDot CookiesDot DialogDot KeysDot ReceiptDot VariantsLenticular Card

More

Pollen TrailSplit-FlapTheme Toggle

Text

Dither RotatorDot TypeEnigma TextInk Print

Data viz

Dots

Contribution FieldDot BarsDot ChartDot Waffle

Dither

Dither DensityDither MapDither Stack

Media

Dots

Dot EqualizerDot WaveformVoice Note

Dither

Dither Scrubber

AI

Agent StepsAnswer VersionsCitation ChipConfidence GlassContext MeterDiffusion ImageDiffusion TextDither MaskDoc ReaderDot DictationGenerate ButtonGhost TextModel PickerPrompt BarResponse ActionsRevising TextSpoken ReplyThinking OrbThinking TraceToken MeterToken StreamWord Alternatives

Useful

Arrival TimeBest ShotCareer LineForgiving SearchGesture PadHeard AsHonest PinImage PaletteLikeness GridNear Miss SearchRain DropsSoft CorrectSpending SortSticker LiftTaste Ledger

Backgrounds

ButterfliesDandelionsDuck PondFirefliesKoi PondLight WellMarigoldsTrain WindowWhite Blossom

ml-ui / Media

Dither Scrubber

The timeline is a row of dots, lit to where it's playing, faintly fuller where it has loaded, with a gap at each chapter and the playhead standing a dot proud. Point along it and a preview of that moment appears above, printed in dither from the video's own frames, with the time and the chapter's name; click or drag to go there. The frames are read once from a hidden copy of the video when the player comes into view, and hovering shows the nearest one read so far.

Needs: None. The video's own frames, read in the browser. A video from another site needs CORS for the previews.

Demo video made from photos by Paul Jarvis, Anton Sulsky, Dillon McIntosh, Go Wild, Danka & Peter, Andrea Boldizsar, Alex Talmon and Kenneth Thewissen on Unsplash

Customize

Props

PropTypeDefaultDescription
srcstringrequiredThe video file. Another site's video needs CORS for the previews.
posterstring–A still to show before it plays.
chapters{ at: number; title: string }[]–Named stretches of the video, by start time in seconds.
framesnumber48How many preview frames to read.
tonestring–The played part's colour. The page's accent by default.
cellnumber2Size of one dither cell in the preview, in px.
stepnumber5Seconds the arrow keys skip.
classNamestring–Class on the player. It fills its container's width.
styleCSSProperties–Style on the player.
Dot Equalizer →