@dioramajs/text/split-flap
Exports of @dioramajs/text/split-flap.
import { default, drum, DRUMS } from '@dioramajs/text/split-flap'Functions
Constants
default | The departure board: each character flips through the faces of a drum to its letter, when the text comes into view and whenever the site changes it. The DOM text is the truth for screen readers, search and copy; the flaps are drawn over it. |
DRUMS | Drums by name, the blank first; any other value of `chars` is the drum itself. |