A page object for a body of work: plates 01 to 04 stacked in the four line inks, and a dashed "05 Open" slot on top for the next project. Put it inside a card link with the mk-cube-host class and the plates fan out on hover or keyboard focus.
Example#
Usage#
Use a sample case inside a card for a set of options or tiers: four stacked plates in the line inks and an open fifth slot. It fans out when its card is hovered or focused.
- The fan follows keyboard focus as well as the pointer, so keyboard users see it too.
- The card's own link names it; the case is art.
Layer and volume#
Art inside a card. The fan runs at Studio, Press and Rave (300 ms on the out curve, 40 ms apart, a little longer at Press and Rave); never at Quiet.
Anatomy#
- CaseThe stack of plates.
.mk-case - Open slotThe fifth, empty plate.
.mk-case-open - LabelLettering on the case.
.mk-case-label
Volume#
Quiet
Studio
Press
Rave
Content#
- The card around it says what the plates are: tiers, samples, options.
Do and don't#
Do
Don't
A sample case outside any card, fanning when nothing in particular is hovered.
Fidelities#
CSS 3D in the house pose, print-shaded in the line inks.
Performance#
Zero JavaScript; transform-only motion.
Gating#
Reduced motion and Quiet keep the stack still.
Accessibility#
aria-hiddenart: the card's own link text names it.- The fan follows keyboard focus as well as the pointer.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
labels | readonly [string, string, string, string] | 01 | The plates' labels, bottom up (art; default 01 to 04). |
open | string | none | The open slot's label (art, default "05 Open"). |
size | number | none | |
className | string | none |
Tokens#
System tokens (15)
--mk-3d-a-fill--mk-3d-k-fill--mk-3d-key--mk-3d-lead-fill--mk-3d-m-fill--mk-3d-r-fill--mk-3d-shadow--mk-3d-support-fill--mk-3d-wood-fill--mk-dur-panel--mk-dur-panel-stagger--mk-ease-out--mk-font-display--mk-text--mk-w-quiet
Its own properties (1)
--mk-s
Changelog#
Arrived in 0.9.0.
- Three: the alphabet twins at every fidelity (model, SVG, CSS 3D, GL geometry, physics shapes; Rave's MORE BLOCKS rains them), the
row,topple,twins,stack-1/2/3,line-k/r/a/mandwoodarrangements with their text alternatives, the page objectsCrate,PlanPlate,Slot,SampleCaseandBaseplate,BlockLoader,Topple404,BuildOnScroll, the house camera and an id-colour parity mode in poster frames, the wood grain in GL, specks and Shake, the phone's tap-to-play light rung with "Done", andInkFieldMaterial(the field backdrop in the stage's own canvas). Read the whole entry