Squash drop
squash-dropA squashes, launches up stretched; B falls in, squashes on impact, wobbles; its content follows through.
Install
$ npx paper-motion add squash-dropCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
duration
height
import { squashDrop } from './moves/squash-drop.js';
// in s.update(t)
squashDrop(a, b, p);Defaults
Notes
- A squashes, then launches up stretched; B falls in stretched, squashes on impact and wobbles to rest while its content follows through.
- Stack A and B in one positioned slot (their parent); give the slot overflow:hidden to keep travel inside it.
- Pass the real duration in seconds and call it through p = 1: that is when it hides the layers it made.
- Render with --motion-blur 5.
Spec
- Id
- squash-drop
- Type
- Component transitions
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT