@dioramajs/text/blinds
Exports of @dioramajs/text/blinds.
On this page
import { cut, default, gapOf } from '@dioramajs/text/blinds'Functions
cut | Cuts the panel over `lines` (and `also`, the lines of the second text): `slats` strips per line, or columns and square tiles of a like size. |
gapOf | Seconds between neighbouring slats: `stagger`, shrunk so a long wave starts in time. |
spanOf | Seconds from the trigger until the last slat lies flat. |
swing | A slat's turn, 0 closed to 1 open: it starts slowly, swings a few degrees past flat and settles with no speed left, so the hand-back to the DOM is still. |
waveAt | The turn of every cell at `time` s after the trigger, radians: -π closed, 0 open. |
Constants
default | The heading is printed across real 3D slats that turn to show it: closed, they make a panel in the back color; they turn one after another in a wave, catching the light and casting thin shadows on each other and on the page, until the text lies flat. Horizontal slats, vertical ones or square tiles; played once, scrubbed by the scroll or opened under the pointer. At rest the element is plain DOM text. |