Cosmic Orb
An iridescent soap-bubble planet: a slowly spinning sphere of nebula bands, dust lanes and twinkling stars wrapped in a refracting glass limb with chromatic aberration at the edge.
Add it to your video
It runs for 10 seconds at 1920×1080. Paste this into your composition:index.html
data-start. Put it on a different timeline row with
data-track-index. See data attributes for the rest.Change how it looks
Set these CSS variables on the block:--hue— Nebula hue. Defaults to268.--accent— Accent hue. Defaults to196.--spin— Spin rate (turns per second). Defaults to0.035.--stars— Star density. Defaults to1.--glow— Glow intensity. Defaults to1.--size— Orb size (fraction of frame height). Defaults to0.86.--pulse— Beat pulse (0-1, flat value when no envelope is set). Defaults to0.--pulseenvelope— Beat pulse envelope: comma-separated 0-1 samples spread evenly across the clip. Defaults to “.--backdrop— Backdrop. Defaults to#04040a.
Variables
Every one of these has a default, so the piece works untouched. Set the ones you want to change on the element:Set them with
data-variable-values on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:webgl shader background showcase 3d.