Merging Gaming Worlds into Websites: Developer Experiments with 2.5D Hero Section Using Three.js
Elevate traditional portfolio websites with life, featuring a movable 2.5D scene and independent characters that respond to users.

Stock photo for illustration only, not from the actual event
- Developer creates a 2.5D Hero Section on a website using Three.js
- Characters in the scene react when users hover over CTA buttons and walk to various locations
- Plans to add time-based character behaviors, such as sitting by a campfire in the evening
- Strict performance optimization maintained good Lighthouse and Core Web Vitals scores
After releasing an interactive software developer portfolio, he wanted to further the concept of blending game development ideas into traditional websites. The primary goal was not to forcefully cram a game into the web, but rather to create a hybrid experience that makes the website feel much more alive and memorable.
For his professional website, he removed the traditional static hero section and replaced it with an interactive 2.5D scene powered by Three.js, inspired by retro games. The characters within the scene are not designed for direct player control; instead, they act as a small autonomous environment living on the website.

Stock photo for illustration purposes, not from actual events
This avatar has the special ability to respond to user actions. For example, when a user hovers their mouse over a Call to Action (CTA) button, the character receives input and walks to a specific location in the scene, such as walking toward a treasure chest placed within that environment. The intention is to create a piece that is not merely decorative animation, but a part that truly works alongside the user's experience.
Applying Three.js and Game Design concepts to the web reflects the modern trend of creating immersive experiences, which effectively increases Time on Site. However, the main challenge is managing 3D rendering resources so they do not impact Core Web Vitals, which directly affects SEO and visitor satisfaction.
The concept behind this experiment is to step outside the box of traditional landing pages. Instead of having the web page display the exact same appearance every single time someone visits, he is building a small digital environment that can change over time.
Future plans also include adding new behaviors and events, such as:
- Visiting the website during nighttime hours may trigger completely different display behaviors compared to daytime.
- The avatar might sit near a campfire or play a video game depending on the current state of the simulated world.

Stock photo for illustration purposes, not from actual events
One of the biggest challenges was maintaining website performance. Adding real-time rendering, animations, and automated behaviors can easily impact loading times and user experience, especially on mobile devices. However, the scene was optimized well enough to maintain Core Web Vitals and Lighthouse scores, losing only a minimal amount compared to the previous, less complex version.
Source: Dev.to
Found something wrong in this article? Report an issue with this article
Comments
Leave a Comment