A stunning, immersive developer portfolio built with Three.js โ featuring a Milky Way galaxy, an orbiting solar system, glassmorphism UI, and scroll-driven camera navigation that takes you on a journey through space.
| Feature | Description |
|---|---|
| ๐ Milky Way Galaxy | Procedurally generated spiral galaxy with 19,000+ particles โ warm central bulge, logarithmic spiral arms, disk haze, and core glow |
| โ๏ธ Solar System | Full solar system behind the About section โ Sun with pulsating glow, 8 orbiting planets (with Saturn's ring!), faint orbit trails, and an asteroid belt |
| ๐ Deep-Space Scroll | Section-snapped scroll navigation that flies the camera through the solar system, creating an immersive "going deeper into space" experience |
| ๐ฎ Glassmorphism UI | Frosted-glass overlay cards with backdrop-filter blur, semi-transparent backgrounds, and subtle border glow effects |
| ๐ฏ Adaptive Quality | Auto-detects device capability and scales particle counts, antialiasing, and pixel ratio for optimal performance across devices |
| โฟ Accessibility | Full keyboard navigation, reduced-motion toggle, semantic HTML, ARIA attributes, and prefers-reduced-motion support |
PORTFOLIO/
โโโ index.html # Entry point โ all HTML structure, import maps, section overlays
โโโ js/
โ โโโ main.js # Three.js scene, 3D objects, camera system, animation loop, UI logic
โ โโโ data.js # Skills & projects data (single source of truth)
โโโ styles/
โ โโโ index.css # Design tokens, reset, canvas, loader, utilities
โ โโโ overlay.css # Section overlays, glass cards, hero, about, skills, projects, contact
โ โโโ ui.css # Navbar, section indicators, project modal, responsive breakpoints
โโโ README.md
- Zero build step. The entire app runs with native ES modules via
importmapโ no bundler, no transpiler, nonode_modules. Three.js and GSAP are loaded from CDN. - Section-snapped camera. Instead of scrolling DOM, the camera lerps between predefined z-positions. Each scroll event advances one section, with a cooldown to prevent over-scrolling.
- Layered rendering. 3D objects live in the Three.js canvas (z-index: 0); glassmorphism HTML overlays sit on top (z-index: 10); navigation chrome floats above everything (z-index: 100).
A modern browser with WebGL support (Chrome, Firefox, Edge, Safari 15+). No Node.js required.
# Clone the repository
git clone https://github.com/CodeItAlone/PORTFOLIO.git
cd PORTFOLIO
# Serve with any static server โ pick one:
npx -y serve . # Node.js
python -m http.server 3000 # Python 3Open http://localhost:3000 in your browser.
Note: Opening
index.htmldirectly viafile://will not work due to ES module CORS restrictions. You must use a local HTTP server.
| Input | Action |
|---|---|
| Scroll (mouse wheel) | Navigate between sections |
| Swipe (touch) | Navigate on mobile |
| Arrow keys / Page Up/Down | Keyboard navigation |
| Home / End | Jump to first / last section |
| 1โ5 keys | Jump to specific section |
| Nav links | Click to navigate |
| Right-side dots | Section indicators (hover for labels) |
| โก Motion toggle | Disable all 3D animations for accessibility |
Procedurally generated spiral galaxy with:
- 4 logarithmic spiral arms with color gradients (warm core โ cool blue outer)
- Central bulge with oblate spheroid distribution
- Diffuse disk haze between arms
- Core glow with dual-layered mesh
Full solar system visible behind the glassmorphism about card:
- Sun with 3-layer additive glow and pulsation animation
- 8 planets orbiting at different speeds, each with emissive glow
- Saturn's ring โ tilted
RingGeometrywith double-sided material - Asteroid belt โ particle system between Mars and Jupiter
- Orbit trails โ faint ring geometry for each planet
Color-coded skill orbs orbiting a central dodecahedron:
- ๐ฃ Frontend (purple) ยท ๐ข Backend (green) ยท ๐ก Tools (yellow)
- Hover any skill tag for level tooltip
3D floating card planes + glassmorphism HTML cards:
- Click any card to open the detail modal with tech stack, GitHub link, and live demo
Pulsating dot grid with contact links (GitHub, LinkedIn, Email).
The app auto-detects device capability and scales accordingly:
| Tier | Cores | Galaxy Particles | Asteroid Belt | DPR | Antialiasing |
|---|---|---|---|---|---|
| High | 5+ | 19,000 | 600 | native (โค2) | โ |
| Medium | 3โ4 | 11,000 | 300 | native (โค2) | โ |
| Low | โค2 / mobile | 5,500 | 150 | 1 | โ |
AdditiveBlendingwithdepthWrite: falsefor all particle systemssizeAttenuationfor distance-based particle scaling- Exponential fog (
FogExp2) to cull distant geometry will-change: opacity, transformon overlay transitions- Scroll cooldown and transition locking to prevent input flooding
| Technology | Purpose |
|---|---|
| Three.js v0.160 | 3D rendering, scene graph, materials, particle systems |
| GSAP v3.12 | (Available for future animation enhancements) |
| Vanilla JavaScript | ES modules, event handling, DOM manipulation |
| CSS3 | Glassmorphism, responsive layout, custom properties, keyframe animations |
| HTML5 | Semantic markup, ARIA accessibility, importmap for module resolution |
All content lives in js/data.js โ edit the exported arrays:
// Add a new project
export const projects = [
{
title: 'My New Project',
description: 'A brief description of the project.',
stack: ['React', 'Node.js', 'PostgreSQL'],
githubUrl: 'https://github.com/...',
liveUrl: 'https://...', // set to null if no live demo
},
// ...existing projects
];Key constants in js/main.js:
const CAMERA_POSITIONS = [...] // Camera z-positions per section
const LERP_SPEED = 0.04; // Camera transition smoothness
const GALAXY = { ... }; // Galaxy particle counts, arm count, radius
const planetData = [ ... ]; // Planet sizes, colors, orbit speedsThis project is open source and available under the MIT License.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Built with โ and Three.js by Subrato Kundu