Skip to content

Repository files navigation

Periodic Table

An interactive 3D visualization of the periodic table of elements built with Three.js. Experience chemistry in a video game-inspired UI with a dark, atmospheric design featuring blueish, yellowish, pinkish, and purplish color schemes.

Features

  • 3D Interactive Visualization: Rotate and explore the periodic table in 3D space
  • Element Information: Click on any element to view detailed information
  • Color-Coded Categories: Elements are color-coded by their chemical category
  • Semi-Transparent 3D Boxes: Each element is represented as a semi-transparent 3D box
  • Video Game UI Style: Throne-like aesthetic with dark backgrounds and glowing accents
  • Responsive Design: Works on different screen sizes

Installation

npm install

Development

Start the development server:

npm run dev

The application will open in your browser at http://localhost:3000

Build

Build for production:

npm run build

Preview the production build:

npm run preview

Usage

  • Rotate: Click and drag to rotate the periodic table
  • Hover: Move your mouse over elements to see them highlight
  • Click: Click on any element to view its information in the sidebar

Color Scheme

Elements are color-coded by category:

  • Nonmetals: Blue (#4a90e2)
  • Noble Gases: Purple (#9b59b6)
  • Alkali Metals: Yellow/Orange (#f39c12)
  • Alkaline Earth Metals: Orange (#e67e22)
  • Transition Metals: Red (#e74c3c)
  • Metalloids: Light Blue (#3498db)
  • Post-Transition Metals: Teal (#1abc9c)
  • Lanthanides: Yellow (#f1c40f)
  • Actinides: Pink (#e91e63)

Technologies

  • Three.js: 3D graphics library
  • Vite: Build tool and development server
  • SCSS: Styling with Sass
  • ESLint: Code linting (JavaScript Standard Style)
  • Prettier: Code formatting

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages