paper-motion

Flash

flash

An overexposed white flash hides the cut from A to B.

Install
$ npx paper-motion add flash

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

Tune it, then add it to your kit
0.0s
Parameters
color
bloom
peak
import { flash } from './moves/flash.js';

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

Notes

  • An overexposed white flash: A burns out, the cut happens at the peak, B comes back from the white.
  • At p = 0 only A shows, at p = 1 only B; keep B above A (z-index).

Spec

Id
flash
Type
Transitions
Version
1.0.0
Engine
>=0.2.0
License
MIT

Related