Skip to content

About

An interactive 3D portfolio experience built with Three.js featuring scroll-based navigation, dynamic lighting, and glass morphism UI. The portfolio you're currently viewing!

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Three.js JavaScript CSS3 HTML5

๐ŸŒŒ 3D Interactive Developer Portfolio

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.

Live Demo โ†’ ยท Report Bug โ†’ ยท Request Feature โ†’


โœจ Highlights

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

๐Ÿ—๏ธ Architecture

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

Design Decisions

  • Zero build step. The entire app runs with native ES modules via importmap โ€” no bundler, no transpiler, no node_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).

๐Ÿš€ Getting Started

Prerequisites

A modern browser with WebGL support (Chrome, Firefox, Edge, Safari 15+). No Node.js required.

Run Locally

# 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 3

Open http://localhost:3000 in your browser.

Note: Opening index.html directly via file:// will not work due to ES module CORS restrictions. You must use a local HTTP server.


๐ŸŽฎ Navigation

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

๐ŸŒ Sections

1. Home โ€” Milky Way Galaxy

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

2. About โ€” Solar System

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 RingGeometry with double-sided material
  • Asteroid belt โ€” particle system between Mars and Jupiter
  • Orbit trails โ€” faint ring geometry for each planet

3. Skills โ€” Floating Orbs

Color-coded skill orbs orbiting a central dodecahedron:

  • ๐ŸŸฃ Frontend (purple) ยท ๐ŸŸข Backend (green) ยท ๐ŸŸก Tools (yellow)
  • Hover any skill tag for level tooltip

4. Projects โ€” Interactive Cards

3D floating card planes + glassmorphism HTML cards:

  • Click any card to open the detail modal with tech stack, GitHub link, and live demo

5. Contact โ€” Particle Grid

Pulsating dot grid with contact links (GitHub, LinkedIn, Email).


โšก Performance

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 โŒ

Optimization Techniques

  • AdditiveBlending with depthWrite: false for all particle systems
  • sizeAttenuation for distance-based particle scaling
  • Exponential fog (FogExp2) to cull distant geometry
  • will-change: opacity, transform on overlay transitions
  • Scroll cooldown and transition locking to prevent input flooding

๐Ÿ› ๏ธ Tech Stack

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

๐Ÿ“ Customization

Adding/Editing Projects & Skills

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
];

Adjusting 3D Scene

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 speeds

๐Ÿ“„ License

This project is open source and available under the MIT License.


๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Built with โ˜• and Three.js by Subrato Kundu

About

An interactive 3D portfolio experience built with Three.js featuring scroll-based navigation, dynamic lighting, and glass morphism UI. The portfolio you're currently viewing!

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages