@dioramajs/media/flare
Exports of @dioramajs/media/flare.
import { along, default, GHOSTS } from '@dioramajs/media/flare'Functions
along | The light's x for a scroll `progress` 0..1: `travel` of the width across, centred on home. |
Constants
default | A light source over a photo: a glow with lens ghosts along the axis through the centre and an optional anamorphic streak, or a glossy band that sweeps over the highlights. It follows the pointer, travels with the scroll or stays put; the photo itself is untouched under it. |
GHOSTS | Ghosts along the axis from the light through the centre of the box: where they sit on it (0 is the light, 1 the centre, 2 the mirror point), their radius as a share of the glow, how bright they are and their tint, like the coatings of a real lens. |