paper-motion

Zoom through

zoom-through

The camera dives through A and lands on B.

Install
$ npx paper-motion add zoom-through

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

Tune it, then add it to your kit
0.0s
Parameters
scale
origin
curve
import { zoomThrough } from './moves/zoom-through.js';

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

Notes

  • The camera dives through A (scaling past the lens) and lands on B. origin is where the camera dives in (put it on the subject, e.g. '30% 50%'). B lands from slightly larger, so no edge shows.
  • At p = 0 only A shows, at p = 1 only B; keep B above A (z-index).

Spec

Id
zoom-through
Type
Transitions
Version
1.0.0
Engine
>=0.2.0
License
MIT

Related