A CSS scene of an arrangement, for places where the still should be live markup.
Example#
Usage#
Use a block scene for an arrangement in CSS 3D at the house camera: a section's art slot, a product moment. It can drop into its pose once as it appears.
- Arrangements are the model's poses; the scene is CSS, so it needs
@maxgrits/overprint-three/cssand no JavaScript. - The drop plays once from Studio up.
- For play (grabbing, throwing), use the
BlocksStage.
Layer and volume#
Art. The drop plays once from Studio up; none at Quiet or under reduced motion.
Anatomy#
- SceneThe house camera.
.mk-block-scene - BlockOne block in the pose, print-shaded.
.mk-block-front - ShadowContact shadows on the floor.
.mk-scene-shadow
Volume#
Quiet
Studio
Press
Rave
Content#
- The scene is art; describe the arrangement in the section's text if it matters.
Do and don't#
Do
Don't
A block scene placed behind a section's heading.
Fidelities#
The CSS 3D fidelity of an arrangement.
Performance#
0 JS; the drop animates translate only.
Gating#
None.
Accessibility#
- Decorative (
aria-hidden).
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
arrangement required | ArrangementName | none | |
drop | boolean | none | Drop into the pose once (none at Quiet and under reduced motion). |
size | string | number | none | Block size (`--mk-s`). |
className | string | none |
Tokens#
System tokens (16)
--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-block-drop--mk-dur-block-drop-stagger--mk-ease-fall--mk-volume--mk-w-press--mk-w-rave--mk-w-studio
Its own properties (4)
--mk-3d-dots--mk-3d-line--mk-3d-print--mk-s
Changelog#
Arrived in 0.1.0.
- The block model, physics and the SVG and CSS fidelities (P1-T9 to P1-T12): the cast, the logo, mark and pile-a arrangements, the rain and tidy kit constants, the cannon-es
PhysicsWorldwith the hard settle cap and keep-out columns, letters baked from Anybody,BlockCss,BlockScenewith its drop, the card hop,BlockSvg,BlockStill,blockSvgStringwith resolved hex,BlockMarkandfaviconSvg.