Punch
punchThe frame punches in on each hit and springs back.
Install
$ npx paper-motion add punchCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
amount
stiffness
damping
origin
import { punch } from './moves/punch.js';
// in s.update(t)
punch(el, t);Defaults
Notes
- The frame jumps in by
amounton each hit and springs back. - Put hits on the beat or on a sound cue, never on every beat.
Spec
- Id
- punch
- Type
- Camera and energy
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT
- Data
- r/punch.json