All Opus 5.5 videos β€Ί Apps & UI

Interactive jelly watermelon slice you can pull and cut in-browser

by Vib3Coded (@vib3coded) Β· Sep 27, 2026

Prompt

The author shared the full prompt.

Create "Melon Jelly Knife" β€” a single self-contained HTML file (melon-jelly-knife.html) with an interactive, physically simulated gummy watermelon slice that you can pull like jelly AND cut into pieces with a visible steel knife that animates every cut.

── Platform ──
- WebGPU + WGSL only, all JS/CSS inline, no external libraries. ES module in one <script type="module">.
- If navigator.gpu / adapter is missing, show an elegant editorial fallback card ("This specimen needs WebGPU.") with a specific explanation β€” never fake it with a lesser renderer. Disable the controls in that state.
- Recover from device loss (rebuild the renderer up to twice), surface WGSL compile errors via getCompilationInfo.
- Fixed 60 Hz simulation step with an accumulator (max 3 steps/frame), ΒΌ-speed toggle, pause (Space), keyboard: N nudge, R reset, K toggle knife, H hand.

── Page design (editorial "material study") ──
- Warm paper studio backdrop #E2DFDA; the 3D floor is an infinite studio sweep that tones to exactly this colour.
- Top-left masthead: small caps label "MATERIAL STUDIES / NO. 009", huge italic serif title "Melon / Jelly." (second line indented), and a 3-line serif tagline.
- Top-right status pill "WEBGPU Β· LIVE / PAUSED / UNAVAILABLE".
- Right panel (thin 1px borders, translucent paper): Tool (Hand | Knife segmented buttons with small line icons), Variety swatches (Crimson, Golden, RosΓ© β€” each recolours flesh, rind, seeds, shadow tint and the UI accent), sliders Firmness (trembling ↔ set) and Internal damping (lively ↔ syrupy), buttons "Give it a nudge", Reset, Pause, checkboxes ΒΌ speed and Show mesh.
- Bottom-left: tool hint in italic serif, live readouts row (Mass β‰ˆ g, Volume % of rest, Kinetic Β΅J, Pieces) with an "illustrative scale" footnote (1 sim unit β‰ˆ 3.5 cm, gummy 1.3 g/cmΒ³).
- Bottom-right collapsible "Inside the experiment" notes explaining the physics, rendering and the cutting method in plain prose.
- A dashed SVG guide line while drawing a knife stroke; small toast messages ("Missed β€” draw the blade across the slice.", "Too thin to cut there.", "That's plenty of pieces.").
- The camera frames the slice inside the free area between masthead, panel and readouts (lens shift), orbits on empty-space drag, zooms on wheel, double-click resets view, gently follows the slice if it is thrown far.
- Responsive: under ~860px the layout stacks (masthead, canvas ~58vh, hint, panel) with 44px+ touch targets; prefers-reduced-motion softens the intro and damping.

── The slice ──
- A thick (T β‰ˆ 0.58) wedge of watermelon: sector with ~32Β° half-angle, inner radius ~1.62, all corners rounded in plane (ρ = 0.17) and top/bottom edges bevelled (~0.13).
- Layers by depth from the rind: dark green skin with irregular darker stripes, a pale cream-green band, then translucent red flesh; black teardrop seeds arranged in arcs and a few tiny air bubbles suspended inside.
- Rendered as translucent candy: screen-space refraction of the scene behind, per-pixel thic
Prompt by @vib3coded, from their reply
Category
Apps & UI
Stack
Physics, WebGPU
Opus effort
high
From the author
high, one prompt, estimated API cost $12.48
On X
619 likes Β· 588K views Β· 446 saves

More app & UI demos

Apps & UIPrompt0:07

Animated fitness app celebration screen from a static design

@Onethirdesignerβ™₯ 2.1K
Apps & UIPrompt0:16

Liquid Glass-style looping UI motion demo with synced audio

@motion_conquestβ™₯ 2K
Apps & UIPrompt0:38

Bluetooth speaker design demo generated with tscircuit

@seveibarβ™₯ 2K
Apps & UIPart of prompt0:15

Bookmark icon animation with cloth-like wave, fill, and shimmer effects

@kippe07β™₯ 1.2K
Apps & UIPrompt3:04

Evangelion-themed music visualizer with matching UI and multiple visualizations

@LuisBizarroβ™₯ 1.1K
Apps & UIPrompt0:20

Browser-based character editor with live sliders and exportable backgrounds

@magnificβ™₯ 960
Apps & UIPrompt0:07

Premium crypto wallet welcome screen animation

@vvarrdiβ™₯ 816
CSS
Apps & UIPrompt0:17

2D modeling of StandRig from a PSD file

@sayaka_aiartβ™₯ 721
Physics