Smoke Ring
A glowing ring of noisy smoke that drifts outward from its center.
Overview
Smoke Ring draws a ring of smoke centered in its container. The ring's edge wobbles with noise, its density thins into wisps that drift outward, and an optional glow fills the inside. Colors run from the dense core of the smoke (first color) to its thin edges (last color).
The background is transparent by default, so the ring sits on your own surface. It works well as a focal point behind a logo, an avatar, a voice or AI status indicator, or an empty state.
Installation
Usage
import { SmokeRing } from "honestui/shaders"
<div className="relative h-80 bg-[#0c0d14]">
<SmokeRing className="size-full" colors={["#ffffff", "#b4bcfa", "#5560cf"]} />
<div className="absolute inset-0 grid place-items-center text-white">Listening…</div>
</div>Set colorBack to paint an opaque background in the shader instead of relying on the container.
Accessibility
Smoke Ring is decorative and its canvas is hidden from assistive technology. When the ring signals a state, such as listening or thinking, also announce that state in text or with a live region; the animation alone does not convey it.
The effect pauses while it is offscreen or the tab is hidden, and shows a still frame when the user prefers reduced motion. Without WebGL2 the container shows only its own background.