Documentation / @debuffjp/juice / squash
Function: squash()
squash(
tweens,target,amount?,duration?):Tween
Defined in: recipes.ts:10
Squash-and-stretch: snap to a deformed scale then spring back to 1. amount > 0 squashes (wide/short, e.g. landing), < 0 stretches (tall/thin, e.g. jump).
Parameters
tweens
target
amount?
number = 0.3
duration?
number = 0.25