Accretion Disc

ProBackgroundsWebGLpowered by @vectorvesper/motion

A black hole ringed by a disc of burning strands, drawn as a long exposure, so the light keeps turning and never repeats. The disc lights up from its rim when it first appears.

Accretion Disc
Preview of Accretion Disc

Included with membership

Members install Accretion Disc with one command and get the full source, the usage code and the Framer remix, licensed for client work. One membership covers the whole library and the CLI.

When to use it

A dark section built around one striking image: a festival, a launch night, an album, an observatory or a science story. It fills the element it is in, so give that a height, or pass a class that positions it.

  • Give the element it is in a height. The disc fills it, with the black hole in the middle.
  • Pass a poster for visitors who prefer reduced motion. A screenshot of the disc works well.

Avoid:

  • Do not put it inside an element with no height. The disc has nothing to fill and shows nothing.
  • Do not put it on a light ground. The disc is light added to black, and on a pale background the strands disappear.

Props

A black hole ringed by a disc of burning strands, drawn as a long exposure. Each frame adds a few new strands while the older light fades, and the strands turn with the disc, the inner ones faster, so the light keeps circling and never settles into a loop.

<AccretionDisc />

The disc. Fills its parent, positioned relative, on black. A class you pass wins over those, so one that positions it works.

PropTypeDefaultDescription
speednumber1How fast the disc turns.
introbooleantrueLight the disc from its rim outward when it first appears.
posterstring—Image shown where the scene cannot run: reduced motion, or a device below the floor.
classNamestring—Class for the outer element.
Visitors who prefer reduced motion see the poster, and nothing moves. So do devices below the runtime's floor, and the few whose graphics cannot hold the long exposure.
Each frame draws only a small batch of new strands onto a picture that holds over a thousand, so the cost stays the same however full the disc gets. Sparks and cracks of light are drawn sharp on top. At reduced quality it draws fewer strands a frame and at a lower resolution. Off screen it does no work.
Client component. The server renders the element, and the disc starts in the browser.
Back to all components