Scan reveal
scan-revealB draws in under a moving scan line.
Install
$ npx paper-motion add scan-revealCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
curve
import { scanReveal } from './moves/scan-reveal.js';
// in s.update(t)
scanReveal(a, b, p);Defaults
Notes
- B draws in from the top under a scan line element (
line, absolutely positioned inside B's parent). - At p = 0 only A shows, at p = 1 only B; keep B above A (z-index).
Spec
- Id
- scan-reveal
- Type
- Transitions
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT