Bungee Type
A headline you can grab by a letter, stretch and let go: the neighbours follow like an elastic band, tint with the tension, and the whole line snaps back with a wobble. A click plucks a letter and sends a ripple along the line.
pixikit.com/docs/effects/bungee-type
Customize
Feel
Font size80px
Font weight
Line height1.05
Align
Color
Tension color
Tension tint0.80
Tension0.60
Stiffness1.00
Bounce0.62
Reach4.0em
Squash0.50
Tilt0.50
Lift0.50
Throwable
Pluck on click
Pluck strength1.00
Hint
Interactive
Props
26| Name | Type | Default | Description |
|---|---|---|---|
feel | "elastic" | "rubber" | "taffy" | "spring-steel" | "jelly" | None | A named look that sets several props at once. A prop you pass yourself wins over it. |
text | string | "Built to bounce back" | The headline. |
as | "span" | "div" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | The element the headline renders as. |
fontSize | number | string | "clamp(2.75rem, 8vw, 6.5rem)" | The font size. |
fontWeight | number | 700 | The font weight. |
letterSpacing | string | "-0.035em" | The letter spacing. |
lineHeight | number | 1.05 | The line height. |
align | "left" | "center" | "right" | "center" | How the lines align. |
color | string | None | The colour of the text. Follows the surrounding text by default. |
tensionColor | string | "#B15CFF" | The colour stretched letters shift toward. |
tensionTint | number | 0.8 | How strongly stretched letters take the tension colour, 0 to 1. |
tension | number | 0.6 | How far a pull carries into the neighbouring letters, 0 to 1. |
stiffness | number | 1 | How firmly letters spring back. |
bounce | number | 0.62 | How much letters overshoot and wobble on the way back, 0 to 1. |
reach | number | 4 | The distance in em a letter follows the pointer freely. Pulling further meets growing resistance. |
squash | number | 0.5 | How much a pulled letter stretches along the pull, 0 to 1. |
tilt | number | 0.5 | How much letters lean as they move, 0 to 1. |
lift | number | 0.5 | How much the grabbed letter lifts toward you, 0 to 1. |
throwable | boolean | true | Releasing mid-swipe flings the letter with the pointer's speed. |
pluckOnClick | boolean | true | Clicking a letter without dragging plucks it, sending a ripple along the line. |
pluckStrength | number | 1 | The strength of a pluck. |
hint | boolean | false | Tugs one letter the first time the headline is in view. |
interactive | boolean | true | Lets letters be grabbed. |
ref | Ref<BungeeTypeHandle> | None | Gives pluck. |
className | string | None | |
style | CSSProperties | None |