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 / Backgrounds

Light Well

A shaft of light falls slanting through the rippling surface, lands on the sand as a moving net of caustics, and catches the fish as they cross it; bubbles rise from the floor in wobbling strings. Each fish lives like its kind: small orange fish mill in the light, a shoal of silversides turns as one and flashes as it turns, a barracuda hangs in the shade and now and then lunges at the shoal, which bursts apart and closes again, a pufferfish hovers and swells into a spiny ball when frightened, and gobies dart along the sand and dig. The light swings with your cursor; a click ripples the floor and startles everyone near it.

Needs: None. A 2D canvas.

Customize

Props

PropTypeDefaultDescription
fishnumber6How many of the small orange fish that mill in the light.
shoalnumber14Silversides in the shoal: they school, flash as they turn, and burst apart when the barracuda strikes.
barracudabooleantrueA barracuda that hangs in the shade and now and then lunges at the shoal.
pufferbooleantrueA pufferfish that hovers on its fins and swells into a spiny ball when frightened.
gobiesnumber2Gobies on the sand, darting in short hops and digging.
cellnumber3Size of one dither pixel in px.
colorstring"#f08a2c"The fish's colour, where the light catches them.
lightstring"#dff4f2"The light's colour. On a light page it is deepened so it still reads.
waterstring"#2f7f8c"The water's colour, deepening with depth.
dustbooleantrueDust hanging in the beam, glinting where the light catches it.
bubblesbooleantrueStrings of bubbles rising from the floor.
speednumber1Time scale. 0 holds the moment.
interactivebooleantrueThe light follows the cursor and the fish follow the light; a click ripples the floor and startles the fish. Read on the window, so content above keeps its clicks.
seednumber5Picks the fish and the dust.
opacitynumber1Opacity of the whole scene.
dprnumbernullDevice pixel ratio to render at. Math.min(devicePixelRatio, 2) when unset.
classNamestring–Class on the root element, which fills its parent.
styleCSSProperties–Style on the root element. Theme it through the --mlui-* variables.
← Koi PondMarigolds →