Skip to content
PixiKit

Marble Type

A headline filled with marbled ink. Veins and fine threads drift on a bath inside the letters, the pointer stirs them and breaks the fast ink into stipple, and a click drops a bead that pushes the pattern aside.

pixikit.com/docs/effects/marble-type

Customize

Look
Colors2 of 10
Base color
Band size0.50
Waviness1.20
Grain0.00
Grain size2.0px
Dot size1.00
Current1.00
Font weight800
Font size124px
Letter spacing-0.020em
Line height1.00
Interactive
Stir strength1.00
Stir radius0.50
Drop ink
Drop size0.50
Viscosity0.50
Memory8.0s
Intro
Intro duration1.8s
Paused
Quality1.00

Props

30
NameTypeDefaultDescription
look"marble" | "violet" | "endpaper" | "lagoon" | "pointillist"NoneA named look that sets several props at once. A prop you pass yourself wins over it.
textstring"Made by hand"The headline.
colors[string, string]["#3F3F46", "#A1A1AA"]Two inks: the broad veins, and the fine threads between them.
baseColorstring"#F4F4F5"The colour the inks float on, inside the letters.
bandSizenumber0.5The width of the marbled bands.
wavinessnumber1.2How much the bands bend and fold.
grainnumber0How much of the ink breaks into stipple at rest, 0 to 1.
grainSizenumber2The spacing of the stipple, in pixels.
dotSizenumber1The size of each stipple dot.
currentnumber1How fast the ink drifts by itself.
fontFamilystringNoneThe font family. Follows the surrounding text by default.
fontWeightnumber800The font weight.
fontSizenumber124The font size, in pixels.
letterSpacingnumber-0.02The letter spacing, in em.
lineHeightnumber1The line height.
interactivebooleantrueMoving the pointer through the headline stirs the ink.
stirStrengthnumber1How hard the pointer stirs, 0 to 3.
stirRadiusnumber0.5The reach of a stir, relative to the font size.
dropInkbooleantrueA click or tap drops a bead of ink that pushes the marbling aside.
dropSizenumber0.5The size of a dropped bead, relative to the font size.
viscositynumber0.5How thick the ink is: 0 swirls freely, 1 barely moves.
memorynumber8How long a stir or a drop stays in the ink, in seconds.
introbooleantrueFloods the letters with ink the first time they are in view.
introDurationnumber1.8The length of the intro, in seconds.
pausedbooleanfalseFreezes the marbling and ignores the pointer.
qualitynumber1The drawing resolution, 0.5 to 1.
refRef<MarbleTypeHandle>NoneGives drop, stir and replay.
childrenReactNodeNoneContent shown over the headline.
classNamestringNone
styleCSSPropertiesNone

Related