Token Flow
Thick glass coins with refracting rims, tumbling through a pattern and flipping when the pointer sweeps past.
pixikit.com/docs/effects/token-flow
Customize
Preset
Colors2 of 10
Background color
Pattern
Count10
Size0.36
Thickness0.22
Bevel0.16
Spacing1.00
Speed1.00
Turn90°
Spin0.00
Twist0.00
Rock42°
Ripple0.22
Drift1.00
Sway1.00
Depth1.00
Tilt12°
Angle0°
Pitch0°
Yaw0°
Center x0.00
Center y0.00
Ior1.45
Dispersion0.50
Density0.40
Frost0.20
Glow1.00
Intensity1.00
Light angle0°
Interactive
Flick1.00
Pulse1.00
Parallax0.50
Paused
Quality1.00
Props
41| Name | Type | Default | Description |
|---|---|---|---|
preset | "stream" | "ring" | "helix" | "wave" | "grid" | "vortex" | "float" | "stream" | A complete look; the props it sets follow it until you pass them. |
colors | [string, string] | ["#5227FF", "#FF9FFC"] | Two colors of the light caught in the glass. |
backgroundColor | string | "#0a0a0a" | Color behind the coins. |
pattern | "stream" | "ring" | "helix" | "wave" | "grid" | "vortex" | "float" | "stream" | Arrangement of the coins. |
count | number | 10 | Number of coins. |
size | number | 0.36 | Coin radius, relative to the height. |
thickness | number | 0.22 | Thickness of a coin. |
bevel | number | 0.16 | Roundness of the rim. |
spacing | number | 1 | Space between coins. |
speed | number | 1 | Speed of the motion; negative values run it backward. |
turn | number | 90 | How far each coin turns over along its path, in degrees. |
spin | number | 0 | Steady spin of each coin. |
twist | number | 0 | Offset of the spin from one coin to the next. |
rock | number | 42 | Rocking of each coin, in degrees. |
ripple | number | 0.22 | Wave that runs through the pattern. |
drift | number | 1 | Travel of the coins along the pattern. |
sway | number | 1 | Gentle bobbing of the coins. |
depth | number | 1 | Spread of the pattern toward and away from the viewer. |
tilt | number | 12 | Tilt of the pattern in degrees. |
angle | number | 0 | Rotation of the pattern in the picture plane, in degrees. |
pitch | number | 0 | Camera pitch in degrees. |
yaw | number | 0 | Camera yaw in degrees. |
centerX | number | 0 | Horizontal offset of the pattern. |
centerY | number | 0 | Vertical offset of the pattern. |
ior | number | 1.45 | Index of refraction of the glass. |
dispersion | number | 0.5 | How far the glass splits light into colors. |
density | number | 0.4 | How strongly the glass is tinted. |
frost | number | 0.2 | Frosted look of the glass. |
glow | number | 1 | Glow along the rims. |
intensity | number | 1 | Overall brightness. |
lightAngle | number | 0 | Rotates the studio lighting around the view, in degrees. The key light starts at the upper left. |
interactive | boolean | true | Respond to the pointer and to touch. |
flick | number | 1 | How hard a coin spins when the pointer sweeps across it. Faster sweeps spin it further. 0 turns it off. |
pulse | number | 1 | Strength of the flip that spreads from a click. 0 turns it off. |
parallax | number | 0.5 | How much the whole pattern leans toward the pointer. |
paused | boolean | false | Freezes the motion. |
quality | number | 1 | Lower values render faster on slow devices. |
ref | Ref<TokenFlowHandle> | None | pulse(x?, y?) sends a flip from a point (0 to 1 on each axis). |
children | ReactNode | None | Content layered above the coins. |
className | string | None | Classes for the root element; give it a height. |
style | CSSProperties | None | Inline styles for the root element. |