@dioramajs/text/emboss
Exports of @dioramajs/text/emboss.
import { backgroundOf, default, reachOf } from '@dioramajs/text/emboss'Functions
backgroundOf | The material's base color: the element's own background color when it has one at least half opaque (the surface then covers the box), else undefined. |
reachOf | The pointer's offset from the box center, eased so a far pointer stays a lamp nearby. |
rest | The light at rest, from the box center in px (y down) and its height: `angle` as a CSS angle (0 above, 90 right) at about the size of the box away and above it, moved up and down with the box's place in the viewport, as a lamp fixed in the room would be. |
Constants
default | Letters pressed into or raised out of a material: paper, leather, brushed metal, stone or plaster drawn over the element's box in its background color, with the relief built from the shape of the glyphs. A lamp follows the pointer and drifts with the scroll; the letters, their walls and the fine grain of the surface catch it and cast real shadows. The text stays in the DOM, hidden behind the copy. |
SMALL | Lines set smaller than this, px, are printed in their color by emboss and deboss. |