3D Bohr Atom Model — CSS Animation

3D Bohr Atom Model — CSS Animation

A pure CSS 3D atom simulation featuring a glowing nucleus, five elliptical orbital shells, and 12 electrons distributed across shells. Built with transform-style: preserve-3d, CSS keyframe animations, and layered box-shadow glow effects — no libraries, no JavaScript.

Helpful?

Was the prompts helpfull?

Case trace

2 creative leaps

Step 1 — Initial PromptClaude

Requirements:

  • A central glowing nucleus positioned in the middle.

  • Three elliptical or circular orbits arranged in 3D space using CSS transforms (rotateX, rotateY).

  • Each orbit contains a small glowing electron that revolves smoothly around the nucleus.

  • Use CSS keyframe animations to animate both:

    • the orbit rotation (for subtle motion of the orbit ring)

    • the electron movement (circular revolution using transform: rotate + translate).

  • Apply different rotation angles and animation delays to each orbit for a dynamic, non-uniform effect.

  • Use transform-style: preserve-3d to simulate depth.

  • Add soft glow effects using box-shadow for both nucleus and electrons.

  • Background should be dark to enhance contrast.

  • Keep the code clean, well-structured, and reusable.

  • Use modern CSS (no preprocessors like SCSS unless also compiled to plain CSS). Output:

  • Provide complete HTML and CSS in one file.

  • No external libraries.

  • Animation should loop infinitely and run smoothly.

Step 2 — More orbits and animationClaude

Add more electrons and orbits, also add zoom in zoom out animation to the orbits

Published 2mo ago

Category

Code

Tools used

Claude

Tags

css animationcreativecodingpure css

More from Jasan H

Liquid Magnetic Button

Liquid Magnetic Button

I want to build a button component in React that behaves like a magnet — when the cursor is within 100px of the button, the button smoothly …

ClaudeReactTailwind
Concrete Laughter

Concrete Laughter

A minimalist film poster featuring a wide expanse of empty, concrete-grey space. At the very bottom of the frame, a single, battered yellow …

ChatGPTPoster
The Weight I Leave

The Weight I Leave

Create a motivational music piece. The target audience is people going through a difficult period, feeling stuck or lost, who need an emoti…

GeminiAlternative R&B

View similar

Koi Pond — Canvas Simulation

Koi Pond — Canvas Simulation

Build a koi pond simulation using an HTML5 canvas. Fish should flock using boids rules (separation, cohesion, alignment) with wander behavio…

ClaudeHTMLCSS
Animated Northern Lights

Animated Northern Lights

Create a night sky canvas. Fill the background with a deep navy-to-black vertical gradient (#020810 at top, #000508 at bottom). Scatter 180 …

ClaudeHTMLCSS
Physics-Based Fireworks

Physics-Based Fireworks

Build a physics-based fireworks system on HTML5 Canvas. Shells launch from the bottom with upward velocity, explode into 60–80 particles wit…

ClaudeHTMLCSS
Animated Envelope

Animated Envelope

Create the HTML structure for an animated envelope component. Use nested divs for the envelope parts: back-fold, letter, top-fold (flap), bo…

CursorHTMLCSS
Gravity Ink

Gravity Ink

Build a fully playable Gravity Painter game as a single React component (.jsx) using Matter.js for physics.Tech StackReact with hooks (useSt…

CursorReactTailwind
TypeBreaker

TypeBreaker

Build a fully playable Brick Breaker game in a single HTML/CSS/JS file with the following features:Pre-Game ScreenDisplay a centered input f…

v0