Mask reveal
mask-revealB is revealed from one edge, behind a hard mask line.
Install
$ npx paper-motion add mask-revealCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
from
curve
import { maskReveal } from './moves/mask-reveal.js';
// in s.update(t)
maskReveal(a, b, p);Defaults
Notes
- B is revealed from an edge (
from: bottom, top, left, right) behind a hard mask. - At p = 0 only A shows, at p = 1 only B; keep B above A (z-index).
Spec
- Id
- mask-reveal
- Type
- Transitions
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT