Inside Kestra: a real estate scroll website built on Kling 3.0 video
By Md Mahafuj Alam · Updated
The idea: a drawing set that becomes a building
Most property sites open on a drone shot and a headline. Kestra opens on a sheet of warm white paper. The whole page is designed as an architect's drawing set: framed footage with dimension lines, a floor ruler, and a title block with sheet numbers A-01 to A-04. Every section below the hero is another numbered sheet, B-01 to B-07, with a sheet strip and a live current-sheet readout in the navigation.
The concept does real work for a developer selling off-plan. A buyer of an unbuilt tower is buying a drawing. Kestra starts there and lets the scroll turn the drawing into the finished building, so the visitor sees the promise and the proof in one gesture. It suits a residential tower, a property developer or a construction company, and it sits with the other templates for real estate.
The story, scene by scene
The hero runs as four sheets. The published description and feature list give the order:
- The waterfront as ink. The page opens on a live ink drawing of the waterfront. Drawing callouts for the crane, the plot, the bay and the city grid are pinned to the scene, and a blueprint crosshair reads out coordinates under the mouse.
- Drawing to footage. As the visitor scrolls, the drawing develops into real 4K footage.
- The tower builds. An empty waterfront plot lights up with a cyan blueprint and a 30-storey glass tower builds itself. A glowing construction line rises with it, tagged with the live level and height (for example, Level 09 · +38.4 m). The title block reports completion %, level and construction date, a key elevation fills floor by floor, and a mini Gantt schedule fills in under the drawing.
- Into the penthouse. The sheet opens up to full screen as a drone flies over the rooftop pool and into the penthouse.
Notice how much of the story is told by interface rather than footage. The video shows the tower rising; the level tag, completion figure and Gantt bars tell the visitor what they are looking at. That layering is what keeps a generated clip from feeling like stock footage.
Why 443 frames, not a video
The hero is a scroll-scrubbed image sequence on a canvas, not a playing video: 443 frames from two 4K Kling 3.0 clips. Each scroll position maps to one frame index, and the canvas draws that frame. Scroll back and the previous frame is drawn, so the tower un-builds exactly. A <video> element seeking to currentTime on every scroll event can lag or skip, because browsers decode video forward from keyframes. Separate images avoid that problem: each one is a still that decodes on its own.
The two clips are joined into one continuous sequence before the frames are cut. The template ships scripts that join the clips and extract every frame tier with ffmpeg, so the same pipeline works on your own footage. The guide to Kling 3.0 video for websites covers how to plan clips like these, and the canvas image sequence guide shows the drawing loop in detail.
How the ink-drawing shader works
The blueprint-to-reality effect is a WebGL shader that runs on each frame of the footage. The feature list does not publish the shader source, so here is how this kind of effect generally works, which is enough to understand and adjust it.
- Edge detection. A fragment shader samples the neighbours of each pixel and measures how sharply the brightness changes, often with a Sobel operator. Strong changes become dark lines; flat areas become paper.
- Paper and ink. The edge value picks between a paper colour and an ink colour, so the output looks drawn rather than filtered.
- A progress uniform. One number from 0 to 1, driven by scroll, blends the drawing towards the original footage. Because it is a single value, the effect can also be shaped: develop from the centre outward, or follow a mask.
uniform sampler2D uFrame;
uniform vec2 uTexel; // 1.0 / frame size
uniform float uProgress; // 0 = ink drawing, 1 = footage
varying vec2 vUv;
float luma(vec2 uv) { return dot(texture2D(uFrame, uv).rgb, vec3(0.299, 0.587, 0.114)); }
void main() {
float gx = luma(vUv + vec2(uTexel.x, 0.0)) - luma(vUv - vec2(uTexel.x, 0.0));
float gy = luma(vUv + vec2(0.0, uTexel.y)) - luma(vUv - vec2(0.0, uTexel.y));
float edge = smoothstep(0.05, 0.2, length(vec2(gx, gy)));
vec3 paper = vec3(0.97, 0.95, 0.91);
vec3 ink = vec3(0.12, 0.13, 0.16);
vec3 drawing = mix(paper, ink, edge);
gl_FragColor = vec4(mix(drawing, texture2D(uFrame, vUv).rgb, uProgress), 1.0);
}The key design choice is that the drawing is computed from the same frames as the footage. There is no second set of hand-drawn images to keep in sync, and if you swap in your own clips, the drawing follows automatically.
Frame tiers, portrait frames and memory
Four hundred frames is a lot to send to a browser. Kestra handles the weight with three published decisions.
| Decision | What the feature list says | Why it matters |
|---|---|---|
| Two frame tiers | Light previews load first so the story scrolls within seconds, then sharp 1920 × 1072 HD frames stream in | The visitor can scroll straight away; quality arrives behind them |
| Portrait set | Separate 9:16 portrait frames for phones | A phone downloads frames composed for its screen, not cropped desktop frames |
| A moving HD window | HD frames loaded nearest the scroll position and far frames released from memory | Decoded images are large; keeping them all would exhaust memory on phones |
The last point deserves a number. A decoded image takes roughly width × height × 4 bytes in memory. One 1920 × 1072 frame is about 8.2 million bytes (7.9 MiB). All 443 at that size would be around 3.6 billion bytes (3.4 GiB) of decoded pixels, an estimate that shows why a window of nearby frames is the only workable approach. The frame budget calculator runs this sum for your own sizes.
The 3D scenes further down the page follow the same discipline: they render only while on screen, cap the pixel ratio and clean up after themselves. Reduced motion is respected with still frames and no smooth scrolling.
The sheets below the hero
Each section is a numbered sheet, and several use real physics rather than canned animation.
- The brief. A statement, a specification schedule with count-up figures and three construction details that draw themselves.
- Build it. A tower-stacking game with rigid-body physics from matter.js, which describes itself as a 2D rigid body physics engine. Visitors drop, drag and throw parts to beat their best height. The engine steps the world each frame, resolving gravity and collisions, and the page draws the bodies where the engine says they are.
- Construction sequence. A pinned section with four stage panels sliding sideways while a 3D model tower builds itself on spring physics.
- Availability. A stacking plan of all 112 residences with status (available, reserved, sold), type filters and a card for each unit.
- Floor plans. A 3D blueprint plan for each residence type. Walls rise on a spring, the plan spins with inertia when dragged, and hovering a room lights it up.
- General notes and site visit. The FAQ is set as numbered drawing notes. The booking form offers the next four Saturdays, time slots and guest count, beside a tower crane that swings as a damped pendulum under the pointer. The footer is the drawing's title block.
Springs and pendulums in one paragraph
A spring pulls a value towards a target with a force proportional to the distance, while damping removes a share of the speed each frame. Low damping overshoots and wobbles; high damping settles quietly. A damped pendulum is the same idea applied to an angle: the pointer nudges the crane, gravity pulls it back, and friction brings it to rest. These small simulations make interface elements feel physical without any keyframed animation.
The technique stack
Kestra is built with Next.js (App Router), TypeScript, three.js, matter.js, GSAP and Lenis. Smooth scrolling comes from Lenis and scroll animations from GSAP ScrollTrigger. It builds as a static export that can be hosted under any sub-path on any static host, so there is no server to run. For how Lenis and ScrollTrigger share one clock, see the GSAP ScrollTrigger and Lenis guide. For the full workflow behind sites like this, start with the guide to building a 3D website with Claude.
What you can change
- Copy. All copy lives in two config files:
story.config.tsfor the hero andsite.config.tsfor everything else. You edit content without touching components. - Footage. Swap in your own video in five steps, with the included scripts that join clips and extract all frame tiers using ffmpeg. The swap video guide walks through the general flow.
- Prompts. The template includes the exact Nano Banana keyframe prompts and Kling 3.0 clip prompts used to make the footage, so you can regenerate the tower for a different site or skyline.
- Hosting. Any static host, at the root or under a sub-path.
Questions, answered.
The questions people ask most about this topic.
01Is the Kestra hero a video?
No. It is a scroll-scrubbed image sequence of 443 frames drawn on a canvas, taken from two 4K Kling 3.0 clips. Scrolling picks the frame, so the story plays forwards and backwards exactly.
02How does Kestra stay fast on phones?
Light preview frames load first, then 1920 × 1072 HD frames stream in. Phones get separate 9:16 portrait frames, HD frames load nearest the scroll position and far frames are released from memory. The 3D sections render only while on screen and cap the pixel ratio.
03Can I use my own footage instead of the tower?
Yes. The template includes scripts that join your clips and extract every frame tier with ffmpeg, plus the Nano Banana keyframe prompts and Kling 3.0 clip prompts used for the original footage.
04Where do I edit the text?
In two config files: story.config.ts for the hero and site.config.ts for every other section. You do not need to edit components to change the copy.
05Does Kestra need a server?
No. It builds as a static export that can be hosted under any sub-path on any static host.
Keep reading
- Start here · the full workflowHow to Build a 3D Motion Website with ClaudeBuild a 3D motion website with Claude: plan the story, generate keyframes and video, cut frames with ffmpeg, then build it in Next.js with GSAP and Lenis.Read the guide
- Guide · AI toolsKling 3.0 for website videos: how to make a scroll-hero clipMake a scroll-hero clip with Kling 3.0: one camera move, start and end keyframes, a prompt that avoids cuts, then join two clips and export the frames.Read the guide
- Docs · TemplatesSwap in your own video: replacing the footage in an Edok Motion templateReplace the video in a scroll animation template: plan shots, generate keyframes and clips, run the frame scripts, check tiers and portrait frames, build.Read the guide