Skip to main content
← Prompts
Prompt · Video

Build a Scroll-Driven Floor Plan Walkthrough

Create a webpage that turns a floor plan into a room-by-room walkthrough as visitors scroll. Start with Sam Aing’s prompt, choose a layout and camera route, then refine each room’s transition from line drawing to materials.

@SammmAing Lintel · Casa Serra
  • Web design
  • 3D modeling
  • Three.js
  • GSAP
  • Interactive

Works with Claude Code

Overview

What you get

  • The author’s starter prompt, the 57-second demonstration and a staged tutorial.
  • A developed demo and a separate first-checkpoint project with readable code.

Good fit

  • Presenting a house, hotel or exhibition space through a scroll-controlled camera route.
  • Learning to move from a flat-looking plan into a 3D scene and reveal materials room by room.

Tutorial

See how the plan becomes a room

A floor plan explains a layout, but it can be hard for visitors to imagine the space. Lintel · Casa Serra makes that plan the start of a webpage: scrolling raises the walls, takes the camera indoors and reveals wood, stone and lighting. The approach suits pages presenting homes, hotels or exhibition spaces.

Watch the video above, or open the author’s demo on a laptop. Look for three connected changes:

  • The drawing gains height: the overhead plan becomes a building, with the rooms staying in the same positions.
  • The camera goes inside: the view drops to the entrance and follows a route through the rooms.
  • Materials appear room by room: the current room becomes fully rendered while the next remains a line drawing.

The scene starts as a complete 3D house. A cut at about 1.2 metres and a view from directly above make it look like a plan. Scrolling raises the cut and lowers the camera, creating the growing-wall effect. Three.js draws the scene, GSAP ScrollTrigger connects animation to scroll progress, and Lenis smooths the scrolling.

  • This example: a continuous scroll-controlled journey from a plan into a building, with spaces and materials revealed along the way.
  • MotionSites Web Builder: cinematic website heroes built around video or 3D assets, with design examples, asset selection and visual revisions.
  • The temple scene film: buildings made in code with a fixed sequence of film shots, useful for learning scene layout, materials and camera direction.

Plan your own space

For this exercise, use Claude Code with Opus 5.5, the model used by the author, to make a small house. The route goes from the entrance to the living room and then the courtyard. Keep the first version to that route before adding rooms.

  1. Create an empty project directory and open it in Claude Code.
  2. Write down the purpose of the space, the rooms to show, their visiting order and the atmosphere. If you have reference photos or a plan, provide their file paths and explain what to take from them.
  3. Copy the author’s starter prompt from this page’s prompt section. Replace the bracketed subject with “a small house,” the rooms with “the entrance hall, living room and courtyard,” and the ambition with “a warm, restrained house in wood and stone.”
  4. Send the completed prompt to Claude Code and review its proposed layouts and camera stops.

The starter prompt asks for two or three directions before any code. Check that the entrance connects to the rooms and that the visiting order makes sense. Change the layout now if needed; it is easier than moving the building later.

The author wrote this starter prompt after developing the main demo, then tested it in a fresh session to produce Casa Larga’s first checkpoint. Casa Serra, shown in the original post, took about two weeks, 70 prompts and four versions. Use the former to understand the first milestone and the latter to study later refinements.

Build the plan and the first room

After choosing a direction, send the following practice request in the same Claude Code session. This practice request adapts the author’s staged process:

Use option [enter the option number], keeping the entrance, living room and courtyard in that order.
For this checkpoint, build only the plan sheet, rising walls and camera entering the entrance hall.
Reveal wood and stone materials in the hall; keep the living room and courtyard as line drawings.
Do not extend the other rooms yet.
Start a local preview, give me its address and record this scroll sequence for review.
  1. Open the local address provided by the AI and scroll slowly from the top.
  2. Check that the plan matches the raised walls, the camera enters through the door and the hall’s materials appear as you arrive.
  3. Scroll back up once to inspect the return to the plan. If the camera crosses a wall or the view is blocked, name the room and the point in the scroll sequence, and attach a screenshot.

The checkpoint should stop in the first room so you can approve the central transition. The author’s readable Casa Larga code stops at the same point.

Optional: run the author’s starter code

With Git and Python 3 available, run these commands in your computer’s terminal:

git clone https://github.com/Sam1983Aing/casa-larga.git
cd casa-larga
python3 -m http.server 8231

Open http://localhost:8231. This is a plain-file website with no build step. Three.js, GSAP and Lenis load from jsDelivr, so it needs network access. Use the local server to load modules and textures correctly. The Casa Serra repository is a minified published copy; start with Casa Larga when reading or changing the code.

Refine the route and material reveal

Once the central transition works, extend the route to the living room and courtyard. Focus each revision on one issue, keeping the layout and camera work you already like.

If the hall’s materials appear too abruptly, send this practice request from the guide in the same session:

Keep the current layout and camera route. Change only the entrance hall’s material reveal.
Show three short video previews: a sweep inward from the door, a reveal rising from the floor and a soft fade.
Use the same scroll range in each preview so I can compare them directly.
Wait for my choice, apply that version, then continue with the living room.

Compare the direction and speed of the reveal, and whether the next room remains a drawing. In his making-of video, the author also asks to see alternative effects before choosing one. He then has a second AI, uninvolved in building the page, review screenshots and score each room to guide revisions.

When changing the camera route, specify the entrance, visiting order and stops together: those changes affect when each room’s materials appear. For furniture or colour changes, ask to keep the route and scroll timing.

Adapt it to a showroom, hotel or portfolio

Decide what visitors should see in order before changing the appearance. A showroom can lead from the entrance through displays to a featured object. A hotel can move from the lobby into a guest room. A portfolio can assign a different type of work to each room.

Replace the brackets in this adaptation template from the guide and send it in a new project session:

Build a scroll-driven 3D webpage for [space or brand].
Opening view: [floor plan, exhibition map or another format].
Spaces and visiting order: [entrance → area one → area two → final stop].
Focus at each stop: [featured object, furniture, service or work].
Visual direction: [materials, colours, lighting; reference file paths].
Scroll experience: [how the walls unfold, the route into the space and how materials appear].
Propose the layout and camera stops first, then wait for my choice.
For the first checkpoint, build only the opening, the walls rising and entry into the first area. Show a preview.

Approve the transition in that first preview, then add areas one at a time. Keep the underlying sequence—flat starting point, entry into space, gradual reveal—and choose the room count and appearance to suit your presentation.