Skip to content
← writing

The galaxy button: orbiting stars and a 3D ring in CSS

css
3d
animation
buttons

Ask your agent to implement this

Read the full writeup at https://seangeng.com/writing/the-galaxy-button.md and implement it in my project.

It covers: The galaxy button: orbiting stars and a 3D ring in CSS. jh3y's glowy CTA, ported to a React component. Orbiting stars, a conic spark sweep, and a star ring tipped into 3D with transform-style: preserve-3d, all driven by one --active variable.

Requirements:
- Follow the technique/approach exactly as described in the writeup.
- Adapt names, colors, and styling to my project's existing conventions.
- If it's a component, make it reusable with sensible props and TypeScript types.
- Keep it accessible: semantic HTML, keyboard support, and respect prefers-reduced-motion.
- When done, tell me which files you created or changed and how to use it.

Paste into Claude Code, Codex, Cursor, or any agent. view raw .md download source .zip