Skip to content
← writing

A draggable 3D game cartridge in pure CSS

css
3d
transform
frontend

Ask your agent to implement this

Read the full writeup at https://seangeng.com/writing/a-3d-cartridge-in-css.md and implement it in my project.

It covers: A draggable 3D game cartridge in pure CSS. No WebGL. A preserve-3d box with six faces, a drag that writes one rotation variable, and a drop-shadow trick that recolors a transparent PNG so one shell works for any accent. Pulled out of basement.fun.

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