Skip to content
PixiKit

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
NameTypeDefaultDescription
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.
brickWidthnumber132Each brick's width in pixels.
brickHeightnumber58Each brick's height in pixels.
brickGapnumber6The space between bricks in pixels.
rowsnumber13How many rows of bricks; the hero's height follows.
tintsstring[]DEFAULT_TINTSBrick backgrounds, picked at random per brick.
colorsstring[]["#7c3aed", "#2563eb", "#a78bfa"]The glow, sparks and burst colours; the first one rims the lifted bricks.
torchbooleantrueLight and lift the bricks near the pointer.
flipIntervalnumber700How often a random brick turns over to its back face, in ms; 0 never.
burstbooleantrueA click throws a burst of sparkles as well as a wave.
seednumber7Seeds the layout, so the server and the browser build the same wall.
titlestring"Build the page people remember"The headline.
descriptionstring"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 }.
classNamestringNone

Related