Skip to content
PixiKit

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
NameTypeDefaultDescription
feel"elastic" | "rubber" | "taffy" | "spring-steel" | "jelly"NoneA named look that sets several props at once. A prop you pass yourself wins over it.
textstring"Built to bounce back"The headline.
as"span" | "div" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6""span"The element the headline renders as.
fontSizenumber | string"clamp(2.75rem, 8vw, 6.5rem)"The font size.
fontWeightnumber700The font weight.
letterSpacingstring"-0.035em"The letter spacing.
lineHeightnumber1.05The line height.
align"left" | "center" | "right""center"How the lines align.
colorstringNoneThe colour of the text. Follows the surrounding text by default.
tensionColorstring"#B15CFF"The colour stretched letters shift toward.
tensionTintnumber0.8How strongly stretched letters take the tension colour, 0 to 1.
tensionnumber0.6How far a pull carries into the neighbouring letters, 0 to 1.
stiffnessnumber1How firmly letters spring back.
bouncenumber0.62How much letters overshoot and wobble on the way back, 0 to 1.
reachnumber4The distance in em a letter follows the pointer freely. Pulling further meets growing resistance.
squashnumber0.5How much a pulled letter stretches along the pull, 0 to 1.
tiltnumber0.5How much letters lean as they move, 0 to 1.
liftnumber0.5How much the grabbed letter lifts toward you, 0 to 1.
throwablebooleantrueReleasing mid-swipe flings the letter with the pointer's speed.
pluckOnClickbooleantrueClicking a letter without dragging plucks it, sending a ripple along the line.
pluckStrengthnumber1The strength of a pluck.
hintbooleanfalseTugs one letter the first time the headline is in view.
interactivebooleantrueLets letters be grabbed.
refRef<BungeeTypeHandle>NoneGives pluck.
classNamestringNone
styleCSSPropertiesNone

Related