Skip to content
PixiKit

Crystal Keys

A field of glass keycaps that type themselves, press under the pointer and ripple on a click.

pixikit.com/docs/effects/crystal-keys

Customize

Preset
Colors2 of 10
Background color
Size0.44
Spacing0.32
Stagger0.00
Height0.50
Taper0.72
Radius0.08
Bevel0.050
Dish0.040
Legends
Tilt42°
Angle28°
Center x0.00
Center y0.00
Ior1.50
Dispersion1.60
Density1.00
Frost0.00
Glow1.00
Backlight1.00
Intensity1.00
Light angle0°
Light speed4.0°/s
Blur0.60
Focus0.50
Grain0.30
Typing1.00
Ripples7.0s
Travel0.32
Interactive
Pulse1.00
Parallax0.50
Intro
Paused
Quality1.00

Props

41
NameTypeDefaultDescription
preset"prism" | "keyboard" | "overhead" | "frost" | "ember""prism"A complete look; the props it sets follow it until you pass them.
colors[string, string]["#5227FF", "#FF7A27"]Two colors of the light caught in the glass.
backgroundColorstring"#0a0a0a"Color behind the keys. Light backgrounds switch to a frosted, ink-like look.
sizenumber0.44Key width as a fraction of the frame's shorter side.
spacingnumber0.32Gap between keys as a fraction of a key.
staggernumber0Shifts each row sideways like a keyboard, as a fraction of a key.
heightnumber0.5Keycap height as a fraction of its width.
tapernumber0.72Width of the top compared with the base.
radiusnumber0.08Corner radius of the keycap as a fraction of its width.
bevelnumber0.05Roundness of the top edge, as a fraction of the key width.
dishnumber0.04Depth of the hollow in the top of each key.
legendsbooleantruePrints a letter on each key. Pressed keys light it from below.
tiltnumber42How far the camera looks down on the keys, in degrees. 90 is straight down.
anglenumber28Rotation of the grid in degrees.
centerXnumber0Horizontal offset of the view.
centerYnumber0Vertical offset of the view.
iornumber1.5Index of refraction of the glass.
dispersionnumber1.6How far the glass splits light into colors.
densitynumber1How strongly the glass is tinted.
frostnumber0Frosted look of the glass.
glownumber1Glow along the key edges.
backlightnumber1Brightness of the light under each key that shows when it is pressed.
intensitynumber1Overall brightness.
lightAnglenumber0Rotates the lights around the keys, in degrees.
lightSpeednumber4How fast the lights drift around the keys, in degrees per second. 0 holds them still.
blurnumber0.6Depth of field. Keys nearer and farther than the focus soften. 0 keeps everything sharp.
focusnumber0.5Depth that stays sharp, 0 near to 1 far.
grainnumber0.3Film grain over the lit keys.
typingnumber1Speed of the idle typing, in bursts of key presses. 0 turns it off.
ripplesnumber7Seconds between idle ripples across the keys. 0 turns them off.
travelnumber0.32How far a key sinks when pressed, as a fraction of its height.
interactivebooleantrueKeys press under the pointer, and a click sends a ripple.
pulsenumber1Strength of the click ripple.
parallaxnumber0.5How much the grid leans toward the pointer.
introbooleantrueKeys rise into place across the grid the first time it comes into view.
pausedbooleanfalseFreezes the typing, ripples and lights.
qualitynumber1Lower values render faster on slow devices.
refRef<CrystalKeysHandle>NoneSends a ripple from a point (0 to 1 on each axis), types a burst of keys, or replays the intro.
childrenReactNodeNoneContent layered above the keys.
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.

Related