@dioramajs/blocks/shine
Exports of @dioramajs/blocks/shine.
import { band, default } from '@dioramajs/blocks/shine'Functions
band | Where the band is `t` of the way through a sweep across a box of `width` x `height` px at `angle` (CSS gradient degrees, 90 sweeps left to right): the direction in box px with y up, the band's centre along it and its half width, px. |
Constants
default | A bright band sweeps across the element on hover, on a timer or as it comes into view, clipped to its rounded box: a glint on a call to action, a pricing card or a badge. The element stays DOM; the band draws over it and is gone between sweeps. |