What it is
An East Asian dragon made of jelly, lying on the floor. It has the parts such a dragon should have: a long body with no wings, two humps along its back, a row of spines, antlers, a mane, two long whiskers, four short legs with claws and a tuft at the end of the tail. It is see-through and wet, and it behaves like jelly with weight: it sags when you lift it, swings when you wave it, and splats and wobbles when it lands.
What you can do
| What you do | What happens |
|---|---|
| Grab a part and lift it | That part follows your pointer and the rest hangs from it, stretching under its own weight. The legs dangle and water drips from it. |
| Swing it fast | Drops of water fly off the parts that move fastest and land on the floor in puddles that slowly dry. |
| Let go in mid-air | It falls, splats on the floor, swells and wobbles. Hit the ground hard enough and it squeezes its eyes shut. |
| Tap it | A poke: the body is pushed in, swells and shivers, with a soft boing and a few drops. |
| Shake | Picks it up by the middle and shakes it for a moment. |
| Drop it | Lifts the whole dragon to the top and lets it fall. |
| Firmness | Low: a floppy dragon that lies flat. High: one that holds its humps up and keeps its length. |
| Wobble | Low: it settles at once. High: it goes on quivering for a long time. |
| Water drops | Turns the water off and on. |
| Slow motion and Show the beads | Watch a wobble travel down the body, and see the chain of circles it is made of. |
How the jelly works
There is no 3D model and no physics library. The dragon is a chain of 32 beads, and four small rules do the rest:
- Gravity and the floor. Every bead falls, and the floor stops it and holds it back a little, so the dragon slides to a stop instead of skating.
- Springs between the beads. Pull one and the pull travels down the chain. That is the stretch, and the snap back.
- A resting shape. Each joint tries to keep the bend it had at rest, which is what holds the neck and the two humps up against gravity. Firmness sets how hard it tries. The resting shape breathes a little, so the dragon never looks quite dead.
- Squeezed beads swell. When beads are pushed together the one between them gets fatter, and when they are pulled apart it gets thinner. The size is on a spring of its own, so it overshoots and settles. That overshoot is the wobble.
The water is simple too: a part moving faster than a set speed sheds drops at its surface in the direction it is moving. Each drop falls, lands at a random depth on the floor and joins the nearest puddle.
How to take it
Press Download the HTML file above, or press Copy the code and save it as a file ending in .html. It is one file with no libraries and works offline.
View the code
Loading…Embed it on your page
<iframe src="https://aspect.tools/jelly-dragon" style="border:0;width:100%;max-width:1000px;aspect-ratio:16/16" title="Jelly Dragon" loading="lazy"></iframe>
License and credit
Jelly Dragon, 2026 series, by aspect.tools (https://aspect.tools/jelly-dragon-page), MIT License
A visible credit is appreciated but not required.
How to change it
| What to change | Where | Example |
|---|---|---|
| Length of the dragon | CONFIG.segments and CONFIG.spacing | segments: 40 for a longer one |
| How it starts | CONFIG.firmness and CONFIG.wobble, both from 0 to 1 | wobble: 0.9 |
| Gravity | CONFIG.gravity | gravity: 600 for a moon dragon |
| No water | CONFIG.drops | drops: false |
| Colours | COLOURS: body, deep (outline), light (shine) and accent (antlers, spines, claws) | Add plum: { body: '#b98cff', ... } |
| Number and height of the humps | the restBend function | Change -0.5 to -0.7 for taller humps |
| Thickness | the rest function | Change 37 to 48 for a fat dragon |
Questions
Is it 3D?
No. It is a side view with a little physics behind it. The see-through skin, the line of light, the shadow and the puddles make it look soft, round and wet.
Does it use a physics library?
No. It is plain JavaScript: gravity, springs between beads, a rule that keeps the resting bend, and a rule that makes a squeezed bead swell.
Why does it sometimes land upside down or tangled?
Because it is thrown about by real rules, not played from a recording. Press Reset to drop a fresh one.
Does it work on phones?
Yes. Drag with a finger to lift and swing it, and tap to poke it. On the canvas a finger moves the dragon instead of scrolling the page.
Can I use it in my own project?
Yes. It is under the MIT License for personal and commercial use. Keep the license notice inside the file.