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

opacity function

How much of a drop shows: whole while it runs or grows, then fading over its last `FADE`; with a `lifetime`, also fading over its last third of it, running or not.

View as Markdown
import { opacity } from '@dioramajs/particles/drops'

.

function opacity(drop: Drop, lifetime?: number): number

Parameters

NameTypeDescription
dropDrop
lifetime?number

Default 0.

Defined in packages/particles/src/drops.ts.