ThreeSourceThe creative source for three.js

Simulations

Axolotl Jellysoft-body jelly simulation in three.js

A soft-body jelly axolotl on a plate: pinch it, pull it, stretch it, let go and it springs back

  • Source download45 KB
  • AssetsGenerated in code
3dsoft bodyphysicsjellyinteractiveaxolotldrag
Everything from $89/3 mo

8 files · commercial license · lifetime updates for this effect

What it is

A translucent jelly axolotl sits on a celadon plate on a linen table. It is a soft body, not an animation: a lattice of particles runs overlapping shape-matching clusters at 180 Hz, so the jelly sags under gravity, sticks to the plate and wobbles back to its rest shape. The gills and tail sway on their own, and the creature is modelled as a signed distance field with a broad head, six gill stalks fringed with fine filaments, stubby legs with toes and a tall tail fin.

Press anywhere on the jelly and drag. Particles within the grab radius follow the pointer and squeeze toward it, so you can pull the head up or stretch the tail out; release and it springs back. Readouts count pinches and show the current and longest stretch. Five flavours change the colours, WOBBLE sets softness, HANDFUL sets grab size, and there are slow-motion, a drop button and synthesised squelch sounds. Right-drag orbits and scroll zooms.

The code is small and readable: under 500 lines of JavaScript in four modules with three.js as the only runtime dependency. It suits product pages for soft or squishy goods, playful landing pages, or as a starting point for your own shape-matching soft bodies with a different SDF shape.

FAQ

Can I use it in my own and client projects?

Yes. You get the full source and a commercial licence: use it for yourself or for clients and sell what you build. You just cannot resell or publish the source itself.

Can I make it look like my brand?

Yes. You get the full source, so colours, copy and every setting can be changed.

What is included and how do I run it?

The full source (8 files, about 45 KB); the licence terms are on our License page. Install with npm and run; a build script is included. It depends only on three.js, with no paid assets.

Similar three.js effects