Cloth Type
A headline cut from silk. It ripples in a slow breeze, catches the light along its folds, unfurls on entrance, and billows where the pointer passes or a click puffs it up.
pixikit.com/docs/effects/cloth-type
Customize
Look
Colors2 of 10
Sheen1.00
Gloss0.60
Iridescence0.50
Wind1.00
Wind angle0°
Turbulence0.50
Flow1.00
Softness0.60
Drag0.50
Hold0.50
Font weight800
Font size124px
Letter spacing-0.010em
Line height1.00
Light angle-35°
Light drift1.00
Interactive
Gust strength1.00
Gust radius1.20
Click gust
Intro
Intro duration1.8s
Paused
Quality1.00
Props
32| Name | Type | Default | Description |
|---|---|---|---|
look | "violet-silk" | "rose-satin" | "midnight" | "champagne" | "banner" | None | A named look that sets several props at once. A prop you pass yourself wins over it. |
text | string | "Feels like air" | The headline. |
colors | [string, string] | ["#7B61FF", "#FFC4F5"] | Two colours: the silk, and its sheen. |
sheen | number | 1 | The strength of the sheen. |
gloss | number | 0.6 | How tight and bright the highlights are, 0 to 1. |
iridescence | number | 0.5 | How much the colour shifts across the folds, 0 to 1. |
wind | number | 1 | The strength of the breeze. |
windAngle | number | 0 | The heading of the breeze, in degrees. |
turbulence | number | 0.5 | How uneven the breeze is, 0 to 1. |
flow | number | 1 | How fast the folds travel. |
softness | number | 0.6 | How broad and soft the folds are, 0 to 1. |
drag | number | 0.5 | Air resistance: 0 keeps the silk rippling after a gust, 1 settles it quickly. |
hold | number | 0.5 | How long a puff from a click holds its shape, 0 to 1. |
fontFamily | string | None | The font family. Follows the surrounding text by default. |
fontWeight | number | 800 | The font weight. |
fontSize | number | 124 | The font size, in pixels. |
letterSpacing | number | -0.01 | The letter spacing, in em. |
lineHeight | number | 1 | The line height. |
lightAngle | number | -35 | The direction the light comes from, in degrees. |
lightDrift | number | 1 | How much the light wanders. |
interactive | boolean | true | Moving the pointer across the headline sends a gust through the silk. |
gustStrength | number | 1 | The strength of gusts from the pointer, 0 to 3. |
gustRadius | number | 1.2 | The reach of a gust, relative to the font size. |
clickGust | boolean | true | A click or tap puffs the silk up at that point. |
intro | boolean | true | Unfurls the headline the first time it is in view. |
introDuration | number | 1.8 | The length of the intro, in seconds. |
paused | boolean | false | Freezes the silk. |
quality | number | 1 | The drawing resolution, 0.5 to 1. |
ref | Ref<ClothTypeHandle> | None | Gives gust and replay. |
children | ReactNode | None | Content shown over the headline. |
className | string | None | |
style | CSSProperties | None |