Skip to content
PixiKit

Ink Cursor

A real-time fluid simulation: the pointer pours ink that swirls, shades like liquid and fades, with a splash on every click.

pixikit.com/docs/effects/ink-cursor

Customize

Colors1 of 10
Rainbow
Color speed1.0
Intensity1.0
Size1.0
Force1.0
Swirl3.0
Trail1.0
Momentum1.0
Shading1.00
Glow0.00
Quality
Click splash
Intro
Contained
Theme

Props

19
NameTypeDefaultDescription
colorsstring[]["#4f8cff", "#2dd4bf", "#ffd166"]Palette the ink cycles through when rainbow is off; any CSS colours.
rainbowbooleantrueCycles through the full spectrum instead of the palette.
colorSpeednumber1How fast the colours shift while you move; 0 keeps one colour per stroke.
intensitynumber1How much ink each movement leaves behind.
sizenumber1Width of the stroke and the splash.
forcenumber1How hard the pointer pushes the fluid.
swirlnumber3Amount of curling eddies in the flow.
trailnumber1How long the ink lingers before it fades; 2 lasts twice as long.
momentumnumber1How long the fluid keeps moving after the pointer stops.
shadingnumber1Depth shading on the ripples, 0 to 1.
glownumber0Soft bloom around the brightest ink, 0 to 1.
quality"low" | "medium" | "high""high"Simulation detail; lower settings are lighter on older devices.
clickSplashbooleantrueBursts a splash where you click or tap.
introbooleantruePlays a short stroke across the screen on mount.
containedbooleanfalseFills the parent element instead of the whole viewport and only reacts inside it.
theme"dark" | "light""dark"Glowing ink for dark backgrounds or absorbing ink for light ones.
zIndexnumber50Stacking order of the effect over your content.
classNamestringNone
styleCSSPropertiesNone

Related