File size: 2,547 Bytes
7fa9e1e
1f3051b
 
 
 
 
7fa9e1e
1f3051b
7fa9e1e
 
1f3051b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: Periodic Table Spectrum Viewer
emoji: 🔬
colorFrom: blue
colorTo: purple
sdk: static
pinned: false
license: mit
---

# Periodic Table Spectrum Viewer

An interactive 3D periodic table for school students (Grades 6–10) with student-friendly facts, bonding diagrams and emission spectra for all 118 elements.

## Features

- **Clickable categories**: click a colour in the legend to show only that family of elements
- **Student-friendly sidebar**: atomic number, mass number, protons/neutrons/electrons, electron shells, melting and boiling points, radioactivity, uses, common chemicals, interesting facts
- **Bond diagrams**: ionic, covalent and coordinate covalent bond examples for each element

- **3D Interactive Periodic Table**: Explore all 118 elements in a beautiful 3D layout using Three.js
- **Emission Spectra**: View accurate emission spectra for each element
- **Detailed Spectrum Viewer**: Click on any spectrum to see an expanded view with:
  - Visible spectrum (380-750nm) with continuous color gradient
  - UV and IR regions for elements with lines outside visible range
  - Electron transition information
  - Wavelength labels and intensity data
- **Element Information**: 
  - Cosmic origin (how the element was created in the universe)
  - Chemistry properties and uses
  - Physics data (electron configuration, isotopes)
- **Color-Coded Categories**: Elements colored by type (metals, nonmetals, noble gases, etc.)
- **Hover Effects**: Elements pop forward when you hover over them
- **Collapsible Info Panel**: Full-height panel with collapsible sections

## How to Use

1. **Rotate**: Click and drag to rotate the periodic table
2. **Zoom**: Scroll to zoom in/out
3. **Select Element**: Click on any element to view its details
4. **View Detailed Spectrum**: Click on the emission spectrum graph to open a full-width detailed view
5. **Deselect**: Press ESC or click away to deselect

## Data Sources

- Spectral data from [NIST Atomic Spectra Database](https://www.nist.gov/pml/atomic-spectra-database)
- Cosmic origin information based on astrophysics research
- Chemistry and physics data from scientific databases

## Technology

- **Three.js**: 3D visualization
- **Vanilla JavaScript**: No framework dependencies
- **Canvas API**: Spectrum rendering
- **CSS3**: Modern styling and animations

## Credits

Student edition by Nithyasri K (Student).

Original Periodic Table Spectrum Viewer created by Andy Kong (MIT License).

## License

MIT License - Feel free to use and modify for your own projects!