@dioramajs/blocks/beam
Exports of @dioramajs/blocks/beam.
import { default, perimeter, pulseAt } from '@dioramajs/blocks/beam'Functions
perimeter | Length in px of the border of a box `width` x `height` with corner radius `r`. |
pulseAt | Where the two pulse beams are `clock` s into the loop: the distance each has run from the top middle, px, and their opacity. They run half the border, meet at the bottom and rest. |
radiusOf | The largest corner radius of an element in px, at most half its shorter side. |
Constants
default | A short bright beam with a soft trail runs around the element's rounded border, like the border beam of SaaS feature cards and highlighted inputs: all the time, in pulses from the top, or while hovered and focused. The element stays DOM; the light draws over its edge. |