Dive in
dive-inThe camera dives into a detail of A; B opens inside it, a ring breaks outward, B's parts rise into focus.
Install
$ npx paper-motion add dive-inCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
duration
depth
import { diveIn } from './moves/dive-in.js';
// in s.update(t)
diveIn(a, b, p);Defaults
Notes
- The camera dives into a detail of A (
target); B opens inside it as it fills the slot, a ring breaks outward, B's parts rise into focus. - 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.
targetis a selector inside A (default [data-part="media"]); a round detail reads best.
Spec
- Id
- dive-in
- Type
- Component transitions
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT
- Data
- r/dive-in.json