Skip to main content

Install

That writes one file: compositions/spiral-galaxy.html.

Add it to your video

It runs for 10 seconds at 1920×1080. Paste this into your composition:
index.html
Move it in time with 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:
  • stars — Star count. Defaults to 20000.
  • arms — Arm count. Defaults to 3.
  • rate — Rotation rate. Defaults to 0.25.
  • glow — Core brightness. Defaults to 1.9.
  • size — Star size. Defaults to 10.
  • core — Core colour. Defaults to #ffa575.
  • rim — Rim colour. Defaults to #311599.
Tagged hero space particles webgl background.