Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

@dioramajs/particles/sparkles

Exports of @dioramajs/particles/sparkles.

View as Markdown
On this page
import { around, default, POOL } from '@dioramajs/particles/sparkles'

Functions

aroundA spot around a box `width` x `height` centred at 0,0 (y up): a point of its outline picked evenly along it, pushed out along the side's normal by up to `spread`, or a little inside.

Constants

defaultSmall twinkling sparkles around an element: while hovered, in a burst from a click, once as it comes into view, or all the time. For badges, "new" labels, premium buttons and product highlights. They draw over the page and never take a click; under reduced motion nothing loads.
POOLSparkles one instance holds at once: one instanced draw.