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

Lenticular Card

Two pictures interleaved in thin strips under ridged lenses, the way those flip postcards are made. Move the pointer across it (or drag a finger) and the card turns a little and changes from one picture to the other, the change sweeping across it in fine stripes with a sheen sliding over the ridges; at rest it shows the front.

Needs: None. A 2D canvas. The pictures must be same-origin or CORS-enabled.

Demo photos by Linh Nguyen and Kenneth Thewissen on Unsplash

Customize

Props

PropTypeDefaultDescription
frontstringrequiredThe picture seen from the left, and at rest.
backstringrequiredThe picture seen from the right.
altstringrequiredBoth pictures in a few words, for screen readers.
lensnumber3Width of one lens in dither cells: a strip of each picture under it.
cellnumber3Size of one dither cell in px.
tiltnumber12Degrees the card turns as you look across it.
aspectnumber0.8Width over height.
childrenReactNode–Laid over the card, like a caption.
classNamestring–Class on the card.
styleCSSProperties–Style on the card.
← LED MarqueePollen Trail →