oxyn

Noise Rings: every noise-ring state in one loader

Ten Perlin noise ring animations in one React component, from voice level to streaming. Switch states with one prop. Install with shadcn.

Installation

Install with the shadcn CLI, or copy the component file. It only needs React.

npx shadcn@latest add https://oxyn.space/r/noise-rings.json

Usage

Updates live with the parameters you set.

import { NoiseRings } from "@/components/noise-rings";

export function Thinking() {
  return (
    <NoiseRings />
  );
}

Props

For the selected animation. Switch it to see the props each one takes.

PropTypeDefaultDescription
animation"drift"|"ripple"|"breathe"|"swirl"|"converge"|"level"|"flow"|"stream"|"focus"|"scatter""drift"Which animation runs. Changing it blends from the old animation to the new one; every other prop keeps its value.
linesnumber4Number of concentric rings.
lineSpacingnumber3Gap between neighboring rings in px. Keep it low so the rings sit close together.
lineWidthnumber1Stroke width of each ring in px.
amplitudenumber8Strength of the noise: how far the outer ring is pushed in or out, in px. Inner rings move proportionally less.
frequencynumber0.8How many bumps run around a ring. Low values give broad, soft swells; high values give tighter ripples.
speednumber0.7How fast the noise drifts over time.
spreadnumber0.12How differently neighboring rings move. 0 keeps them in lockstep; higher lets each ring wander on its own.
sizenumber160Width and height of the orb in px.
minOpacitynumber0.35Opacity of the innermost ring. The outer ring is always fully opaque.
colorstring"#e4e4e7"Line color.
pausedbooleanfalseCoast to a stop on the current frame without unmounting. Turning it off eases back up to speed.
labelstring"Thinking"Accessible name; the wrapper is role="status".
className / style——Spread onto the wrapper div, along with any other div props.

Single loaders

Each animation also ships on its own, for a spot that only ever shows one state.