@dioramajs/text/marquee
Exports of @dioramajs/text/marquee.
On this page
import { default, strip } from '@dioramajs/text/marquee'Functions
strip | The element's content laid out as the browser did, drawn once: backgrounds and borders of its descendants, images and inline SVGs, then the text. Undefined when there is nothing to draw. |
Constants
default | The element's content runs past in an endless horizontal loop: text, logos and inline images drawn once and repeated by the GPU. It speeds up and leans with the scroll, may turn around when the page scrolls up, and slows to a stop under the pointer or keyboard focus. The DOM content stays where it is, once, for screen readers. |
Interfaces
Strip | One copy of the content drawn into a canvas, and where it sits in the box. |