Flip 3D
flip-3dThe frame flips over like a card and shows B on the back.
Install
$ npx paper-motion add flip-3dCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
depth
perspective
curve
import { flip3D } from './moves/flip-3d.js';
// in s.update(t)
flip3D(a, b, p);Defaults
Notes
- The frame flips over like a card (around Y) and B is on the back; it pulls back mid-flip.
- At p = 0 only A shows, at p = 1 only B; keep B above A (z-index).
Spec
- Id
- flip-3d
- Type
- Transitions
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT
- Data
- r/flip-3d.json