Pressure Type
Letters swell in width and weight as the pointer comes close, on a variable font, with idle motion and a click ripple.
pixikit.com/docs/effects/pressure-type
Customize
Text color
Pressure color
Stroke color
Idle
Idle speed1.0x
Radius0.50
Smoothing0.50
Click ripple
Flex
Scale
Alpha
Stroke
Width
Weight
Italic
Stroke width3.0px
Min weight100
Max weight900
Props
23| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Compressa" | The text. |
fontFamily | string | "Roboto Flex" | The name of the variable font family. |
fontUrl | string | ROBOTO_FLEX | A stylesheet URL that loads the variable font; it needs width and weight axes. Empty loads nothing. |
textColor | string | "currentColor" | The fill colour of the text; follows the surrounding text by default. |
pressureColor | string | "" | Letters blend toward this colour as they swell under pressure; empty keeps one colour. |
strokeColor | string | "#FF0000" | The colour of the outline when stroke is on. |
idle | "none" | "wave" | "pulse" | "none" | What the letters do while the pointer is away: a wave rolls a swell across the word, a pulse makes it breathe. |
idleSpeed | number | 1 | The speed of the idle wave or pulse. |
radius | number | 0.5 | How far the cursor's pull reaches, as a fraction of the text width. |
smoothing | number | 0.5 | How softly the letters follow the cursor, 0 for instant to 1 for a slow glide. |
clickRipple | boolean | true | Clicking sends a wave of pressure rippling outward through the letters. |
flex | boolean | true | Spread the letters across the full width. |
scale | boolean | false | Stretch the text vertically to fill the height of its container. |
alpha | boolean | false | Fade letters out the further they are from the cursor. |
stroke | boolean | false | Draw an outline behind each letter. |
width | boolean | true | Vary the width axis with pressure. |
weight | boolean | true | Vary the weight axis with pressure. |
italic | boolean | true | Vary the italic axis with pressure; shows on fonts that have an ital axis. |
strokeWidth | number | 3 | The width of the outline when stroke is on, in pixels; about half shows around the letters. |
minFontSize | number | 24 | A minimum font size, in pixels. |
minWeight | number | 100 | The weight of a letter far from the pointer. |
maxWeight | number | 900 | The weight of a letter under the pointer. |
className | string | None |