@dioramajs/text/shimmer
Exports of @dioramajs/text/shimmer.
import { default, ramp, rows } from '@dioramajs/text/shimmer'Functions
ramp | The colors as a ramp that comes back to the first one, mixed in OKLab: wraps without a seam. |
rows | One instanced row per line of text across the whole relief, cut halfway between lines, so every pixel of the text, its light and its shadow is drawn once with the line it belongs to. |
split | The words of a color list: spaces or commas apart, outside parentheses. |
Constants
default | Letters become a material lit in a studio: polished chrome, gold, holographic foil or clear glass, with a rounded bevel along every edge built from the shape of the glyphs. The reflections slide as the pointer moves and the page scrolls, and a light sweeps across on hover, as the text comes into view or on a loop. The text stays in the DOM, hidden behind the copy. |