Magic Wall
A hero on a wall of small bricks that fly in, part around the headline, lift under a pointer torch, turn over and ripple with a sparkle burst on a click.
pixikit.com/docs/blocks/heroes/magic-wall
Customize
Brick width132px
Brick height58px
Brick gap6px
Rows13
Colors3 of 10
Torch
Flip interval700ms
Burst
Seed7
Props
15| Name | Type | Default | Description |
|---|---|---|---|
faces | (string | MagicWallFace)[] | ["Toggle", "Chart", "Loader", "Slider", "Input", "Progress", "Colors", "Profile"] | What the bricks show: a label, drawn with a built-in drawing in turn, or { label, content }. Animations inside play only on a few bricks at a time. |
brickWidth | number | 132 | Each brick's width in pixels. |
brickHeight | number | 58 | Each brick's height in pixels. |
brickGap | number | 6 | The space between bricks in pixels. |
rows | number | 13 | How many rows of bricks; the hero's height follows. |
tints | string[] | DEFAULT_TINTS | Brick backgrounds, picked at random per brick. |
colors | string[] | ["#7c3aed", "#2563eb", "#a78bfa"] | The glow, sparks and burst colours; the first one rims the lifted bricks. |
torch | boolean | true | Light and lift the bricks near the pointer. |
flipInterval | number | 700 | How often a random brick turns over to its back face, in ms; 0 never. |
burst | boolean | true | A click throws a burst of sparkles as well as a wave. |
seed | number | 7 | Seeds the layout, so the server and the browser build the same wall. |
title | string | "Build the page people remember" | The headline. |
description | string | "A hero that assembles itself, opens around your words and answers every move of the pointer." | The line under the headline. |
actions | (string | MagicWallAction)[] | ["Get started", "See how it works"] | Links under the text. A plain string is a label linking to #, the first is primary; or { label, href, variant: primary or secondary }. |
className | string | None |