Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring"Compressa"The text.
fontFamilystring"Roboto Flex"The name of the variable font family.
fontUrlstringROBOTO_FLEXA stylesheet URL that loads the variable font; it needs width and weight axes. Empty loads nothing.
textColorstring"currentColor"The fill colour of the text; follows the surrounding text by default.
pressureColorstring""Letters blend toward this colour as they swell under pressure; empty keeps one colour.
strokeColorstring"#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.
idleSpeednumber1The speed of the idle wave or pulse.
radiusnumber0.5How far the cursor's pull reaches, as a fraction of the text width.
smoothingnumber0.5How softly the letters follow the cursor, 0 for instant to 1 for a slow glide.
clickRipplebooleantrueClicking sends a wave of pressure rippling outward through the letters.
flexbooleantrueSpread the letters across the full width.
scalebooleanfalseStretch the text vertically to fill the height of its container.
alphabooleanfalseFade letters out the further they are from the cursor.
strokebooleanfalseDraw an outline behind each letter.
widthbooleantrueVary the width axis with pressure.
weightbooleantrueVary the weight axis with pressure.
italicbooleantrueVary the italic axis with pressure; shows on fonts that have an ital axis.
strokeWidthnumber3The width of the outline when stroke is on, in pixels; about half shows around the letters.
minFontSizenumber24A minimum font size, in pixels.
minWeightnumber100The weight of a letter far from the pointer.
maxWeightnumber900The weight of a letter under the pointer.
classNamestringNone

More text effects in Pro

View all

Related