[KongchangAI]
· 3 min read· 1,711 words

Build a Gesture-Controlled Website Without Code? AI Recreates a Flower Blooming Interaction End to End

Build a Gesture-Controlled Website Without Code? AI Recreates a Flower Blooming Interaction End to End

A two-phase AI methodology for recreating web projects: explore the solution, then execute the code.

Using a million-view Bilibili flower gesture-interaction site as an example, the article distills a vibe coding methodology for using AI to deconstruct and recreate any web project. It stresses that code execution is now AI's easiest step; the real difficulty is solution exploration and requirement description. The process covers providing complete reference material, having AI restate requirements, discussing solutions repeatedly, converging into an executable plan, then executing in three steps—generating a flower image, generating a blooming video from it, and embedding it in a webpage with camera-based thumb-index distance controlling playback—followed by continuous testing and iteration.

Seeing a stunning web interaction usually makes people wonder, "How much code would this take?" A flower gesture-interaction website shared by a Bilibili creator has racked up over a million views, and the two most common questions in the comments are: Why do the flowers look so realistic? How can a hand control the flower on the webpage?

The value of this case isn't that it teaches you some API—it's that it demonstrates a methodology for using AI to break down and recreate any web project. The creator splits the entire vibe coding process into two phases: solution exploration and code execution, and states clearly that—code execution is now the easiest step, because it tests the AI more than the human.

Don't Rush to Have AI Write Code

Many people start by tossing the AI a single sentence: "Help me build a website where gestures control flowers opening and closing." The results are usually underwhelming. The creator's advice is that the first step is to provide as much complete information as possible: screenshots of the work you like, screen recordings, the original work's URL, even the original author's comment section and other users' feedback—all of it can be fed to the Agent as reference material.

Because code execution tests the AI more than the human

The more complete the reference material, the easier it is for the Agent to understand what you want to build. Then describe your requirements in natural language, for example: "I want to build a website like this, where the flowers are very realistic and beautiful, and the flowers on the page can gradually open and merge following my hand—but I'm a complete beginner. Please tell me how to achieve this."

Here's a small trick: add the phrase "Please refine and restate my requirements." The goal is to first confirm whether the Agent has truly understood the effect you want, rather than diving straight into development. Having a picture in your head but being unable to describe it accurately is the most common reason vibe coding fails.

Vibe coding is a term coined in 2025 by Andrej Karpathy, referring to a collaboration style in which developers describe their intent in natural language and a large model generates the code. It differs from the traditional "learn the syntax first, then start coding" approach by shifting the human's focus from writing the implementation to articulating the requirements and judging the results. Because of this, the quality of the input directly determines the quality of the output: vague requirements leave the Agent guessing; the more concrete the reference material, the easier it is for the Agent to align with the picture in your head.

Explore Solutions with AI, Don't Wait for a Perfect Answer

The second step is to explore solutions together with the Agent. The creator reminds us that the mindset you must have is: don't expect a perfect solution after just one or two rounds of conversation. In this case, at least three questions need to be discussed clearly:

  1. How can the flowers be made to look realistic, exquisite, and high-end?
  2. What are the differences between 3D rendering, code generation, and AI-generated video?
  3. How is gesture recognition implemented, what preparations are needed, and is it complicated?

You don't need to understand these technologies, but at least you need to know what effect you want and be able to make judgments. Repeatedly communicating with the AI is itself a very time-consuming part of vibe coding. Once the discussion is clear, ask the AI to consolidate the earlier discussion into a final execution plan—for example, "Help me choose the simplest and most reasonable approach that can still achieve the final effect. I'm a beginner, so please explain the steps as clearly as possible." This converges the divergent discussion into an executable plan.

AIE two-person conversation

Three Execution Steps: From Flower Image to Gesture Linkage

At the execution stage, the creator breaks the AI's proposed plan into three steps.

Step 1: Generate High-Quality Flower Images

First, determine what the flower looks like and the overall photographic style. The creator recommends searching Xiaohongshu for flowers you like as reference material, then handing the image to the AI to generate prompts—for example, "Using this flower as a reference, generate a delicate, high-end flower image with a powerful texture." Once you have the prompt, go generate the image. Different flowers and different reference images produce vastly different results, so you need to keep selecting based on your own aesthetic.

I recommend searching on Xiaohongshu

Step 2: Generate a Blooming Video Using the Image as Reference

Similarly, have the AI help write a video prompt—for example, "Using this image as a reference, generate a realistic time-lapse video." After generation, you need to filter: whether the flower's angle matches your needs, whether the details jump, whether the camera drifts. Because users will later control the video's playback progress through gestures, poor video quality will directly affect the interactive experience. If the result isn't good, keep adjusting the prompt and generate several more times.

The creator specifically notes that the flowers in this case are not a real-time rendered 3D model, but a pre-generated AI video of flowers blooming. This is one of the key reasons it looks so exquisite.

Time-lapse photography is a technique that captures a slow process that unfolds over a long period (such as a flower blooming) by sampling frames at fixed intervals and then playing them back at normal frame rate, so the footage appears accelerated. Generating this kind of material with an AI video model essentially asks the model to learn the visual characteristics of real time-lapse photography. Note that generative video tends to show detail inconsistencies between adjacent frames (commonly called "jumping") and slow camera drift—which is why the article repeatedly mentions filtering and generating multiple times.

Step 3: Put the Video on the Webpage and Add Gesture Recognition

Hand the prepared video to the Agent with a clear instruction: "I don't know how to code. Please help me turn this blooming video into a clean, beautiful webpage where the flower is the star of the frame. The computer camera needs to recognize my hand, and the distance between my thumb and index finger should control the video's progress. The motion should be stable, with a little buffering but still keeping up with my hand. Please complete it and check it for me."

The flower is the star of the frame

The underlying principle isn't complicated: a fully closed palm corresponds to the start of the video, gradually opening the palm plays the video forward, and a fully open palm corresponds to the flower fully blooming. Gesture recognition technology can be implemented directly through code by calling the computer camera. The creator also found it magical when first trying it—make a few simple gestures at the camera, and you can control what's on the screen.

The mainstream solution for browser-side gesture recognition is MediaPipe Hands (now integrated into MediaPipe Tasks' Hand Landmarker). It runs locally via WebAssembly or WebGL, gets the camera feed through getUserMedia, and outputs the coordinates of 21 hand keypoints in real time without uploading video to a server. The distance between the thumb and index finger is simply the Euclidean distance between these two keypoints, which is then mapped to the video's currentTime or playback progress. Because the keypoints jitter frame by frame, smoothing or damping is usually applied—this is exactly the technical source of the article's "stable motion, a little buffering but still keeping up with the hand."

Testing and Iteration Are the Real Watershed

The creator emphasizes that web coding has another very important phase: continuous testing and iteration. For example, if testing reveals that "my hand has stopped, but the flower is still blooming," you can directly take a screenshot, record a video, or tell the Agent in plain language: "My hand has stopped, but the flower is still blooming. Why? Please check where the problem is and fix it for me." The AI will troubleshoot based on this information. If other problems remain after the fix, keep giving feedback and keep testing.

This approach can be transferred to many interesting gesture-interaction projects. The creator's final takeaway is: next time you see a work you like, try using AI to break it down first, then use AI to turn your own ideas into reality. For people who don't know how to code but have good ideas, the barrier is being chipped away by AI bit by bit.

The problem described in the article—the hand stops but the flower keeps blooming—usually stems from two causes: first, the progress mapping lacks a dead zone or hysteresis, so tiny keypoint jitter is continuously amplified into progress changes; second, the inertia of the smoothing filter is too large. Effective feedback means providing a reproducible phenomenon, trigger conditions, and expected results, with a screen recording if necessary, so the Agent can pinpoint whether the issue is the mapping logic or the filter parameters, rather than relying on repeated guessing.

One-line Summary

A two-phase methodology for using AI to break down and recreate web projects: explore the solution first, then execute the code.

Paragraph Summary

Using a Bilibili flower gesture-interaction website with over a million views as an example, the article distills a vibe coding methodology for using AI to break down and recreate any web project. The author emphasizes that code execution is now the easiest step for AI, and the real difficulty lies in solution exploration and requirement description: first provide complete reference material such as screenshots, screen recordings, and links to the original work, and ask the AI to restate the requirements to confirm understanding; second, repeatedly discuss with the AI the realism of the flowers, the trade-offs between 3D rendering and video generation, and how to implement gesture recognition, then converge the discussion into an executable plan; third, execute in three sub-steps—generate a high-quality flower image, use it as a reference to generate a blooming video, and embed the video in a webpage with camera-based recognition of the thumb-index finger distance to control playback progress. Finally, it points out that testing and iteration are the real watershed, requiring continuous plain-language feedback on problems.

#vibe coding#gesture interaction#AI web development#MediaPipe Hands#gesture recognition#AI video generation#no-code development
Share:

Related articles