paper-motion

Whip pan

whip-pan

A winds up, whips out tilted and smeared under a light streak; B whips in, overshoots, its content trails.

Install
$ npx paper-motion add whip-pan

Copies the code to moves/ in your project, yours to edit.

Tune it, then add it to your kit
0.0s
Parameters
duration
dir
tilt
travel
import { whipPan } from './moves/whip-pan.js';

// in s.update(t)
whipPan(a, b, p);
Defaults

Notes

  • A winds up, then whips out tilted and smeared; a light streak crosses at full speed; B whips in, overshoots and settles, its content trailing.
  • 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
whip-pan
Type
Component transitions
Version
1.0.0
Engine
>=0.2.0
License
MIT

Related