Skip to content
PixiKit

Type Block

A cube whose six faces are grids of characters. It turns on its own, springs after the cursor, leans as it travels, spins when dragged and scrambles its characters on a click.

pixikit.com/docs/effects/type-block

Customize

Preset
Fill
Upright
Cube size280px
Density49
Font size18px
Font weight300
Color
Accent color
Background color
Shading0.60
Depth fade0.30
Depth tint0.50
Glow0.35
Perspective700px
Rotation speed1.00
Auto rotate x0.30
Auto rotate y0.30
Breathe0.10
Breathe speed2.0
Follow speed0.08
Roll0.35
Offset x0px
Offset y0px
Draggable
Inertia1.0s
Scramble duration1.1s
Shuffle0
Opacity1.00
Interactive
Intro
Paused
Dpr2.0

Props

42
NameTypeDefaultDescription
preset"classic" | "upright" | "letters" | "binary" | "matrix" | "mono" | "neon" | "dots"NoneA named look that sets several props at once. A prop you pass yourself wins over it.
wordstring"x"The word or character the faces are set in.
fill"word" | "letters" | "random""word"What each cell shows: the whole word, its letters in turn, or random characters.
charsetstring"abcdefghijklmnopqrstuvwxyz0123456789"The characters used by random fill, the scramble and the shuffle.
uprightbooleanfalseKeeps the characters upright instead of lying on the faces.
cubeSizenumber280The edge of the cube, in pixels.
densitynumber49The number of cells on each face. Rounded to a square grid.
fontSizenumber18The size of the characters, in pixels.
fontWeightnumber300The font weight.
fontFamilystring"inherit"The font family.
colorstring"currentColor"The colour of the characters.
accentColorstring"#B19EEF"The colour far faces and scrambled characters shift toward.
backgroundColorstring"transparent"The colour behind the cube.
shadingnumber0.6How much faces turned away from you dim.
depthFadenumber0.3How much far characters fade.
depthTintnumber0.5How much far characters take the accent colour.
glownumber0.35The glow around near and scrambled characters.
perspectivenumber700The viewing distance, in pixels. Smaller is more dramatic.
rotationSpeednumber1The pace of the automatic rotation.
autoRotateXnumber0.3The automatic turn around the horizontal axis.
autoRotateYnumber0.3The automatic turn around the vertical axis.
breathenumber0.1How much the cube swells and shrinks.
breatheSpeednumber2The pace of the breathing.
followSpeednumber0.08How quickly the cube springs after the cursor. 0 keeps it in place.
rollnumber0.35How much the cube leans as it travels.
offsetXnumber0The horizontal offset from the cursor, in pixels.
offsetYnumber0The vertical offset from the cursor, in pixels.
draggablebooleantrueDrag to spin the cube. A flick keeps it turning.
inertianumber1How long a flick keeps the cube turning, in seconds.
scrambleDurationnumber1.1The length of the click scramble, in seconds. 0 turns it off.
shufflenumber0How many characters change each second on their own.
opacitynumber1The opacity of the whole cube.
interactivebooleantrueFollow, drag and click. Off keeps the cube centred.
introbooleantruePlays an entrance the first time the cube is in view.
pausedbooleanfalseFreezes the cube.
dprnumber2The highest device pixel ratio drawn.
widthstring | number"100%"The width of the stage.
heightstring | number"100%"The height of the stage.
childrenReactNodeNoneContent shown over the cube.
classNamestringNone
styleCSSPropertiesNone
refRef<TypeBlockHandle>NoneGives scramble and spin.

Related