Skip to content

Add Orb Component#5

Open
deesh-dev wants to merge 1 commit intoMotion-Core:masterfrom
deesh-dev:Orb-Component
Open

Add Orb Component#5
deesh-dev wants to merge 1 commit intoMotion-Core:masterfrom
deesh-dev:Orb-Component

Conversation

@deesh-dev
Copy link
Copy Markdown

Summary

Adds a new Orb canvas component — a 3D WebGL sphere with state-driven flow patterns and smooth palette transitions between states.

States

  • idle — gentle meandering drift
  • attune — tangential swirl (colors rotate around the sphere)
  • pulse — radial breathing (colors expand and contract)
  • surge — lissajous orbital churn (rapid multi-axis movement)

Props

  • color — derives a full 5-color HSL palette + fresnel rim glow from a CSS color string (default #6933ff)
  • speed — multiplier applied to the entire animation (default 1)
  • amplitude — audio amplitude in [0, 1] for reactive pulse layering

Smooth 0.4s transitions between all states, transparent background, built with Three.js shaders via @threlte/core Canvas and Svelte 5 Runes.

Test plan

  • bun run dev — navigate to /docs/orb, orb renders with no errors
  • Switch between all 4 states — transitions animate smoothly
  • Change color via picker — full palette updates across the orb
  • Adjust speed slider — animation scales correctly
  • bun run workspace:bootstrap — registry builds with 42 components
  • Lint and format pass: pre-commit hooks ran clean

Adds a 3D WebGL orb with four animation states (idle, attune, pulse, surge),
smooth palette transitions, customisable color and speed props, and a NEW-tagged
docs page with live demo controls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant