What it is
A cat drawn as flat cut-out shapes with a dark outline, like a sticker or a paper puppet. Its face is not one drawing but a stack of layers, and when the cat looks at the yarn the layers slide by different amounts. That small trick is what people call 2.5D: nothing is truly three-dimensional, yet the head appears to turn.
About the cat. It is modelled on a real cat: the long-haired grey tabby that lives with the person who runs this site. The round body, the chest ruff and the steady stare come from that cat.
It does everything the soft 3D cat does, in a lighter and crisper style, and it is modelled on the same grey tabby.
What it does
| What you do | What the cat does |
|---|---|
| Move the pointer, or drag a finger | Turns its face toward the yarn. Eyes, nose, stripes and ears slide at different speeds, and the eye on the far side narrows. |
| Tap or click the cat | Half the time it meows with a speech bubble and a sound. The other half it swats the yarn away with a front paw. |
| Press on the cat and drag upward | You lift it by the scruff. The body stretches, the legs and tail dangle, the eyes go wide and the ears tip back. It swings when you move it. |
| Let go | It drops to the floor where you released it and lands with a small squash. |
How the layers work
Each part of the face has a depth number. The page multiplies that number by how far the cat is looking left, right, up or down, and moves the part by that many pixels.
| Layer | Depth | How it moves |
|---|---|---|
| Ears | −0.5 | Behind the head, so they slide the opposite way |
| Head shape | 0.25 | Moves a little |
| Cream cheeks | 0.5 | A bit more |
| Forehead stripes | 0.7 | More again |
| Eyes | 0.95 | Clearly ahead of the head |
| Whiskers | 1.15 | |
| Muzzle and mouth | 1.2 to 1.25 | |
| Nose | 1.35 | The nearest point, so it moves the most |
Everything except the whiskers is clipped to the outline of the head, so a feature that slides too far disappears behind the edge, as it would on a real turning head. The depth numbers are the rel(...) calls in the file, and changing them changes how strong the effect is.
Make it your cat
The panel under the cat has presets (grey tabby, orange, black, white, tuxedo), colour pickers for the fur, stripes, chest fluff, muzzle, eyes, nose and outline, a fluffiness slider, a meow-chance slider and a name. Press Copy settings to get a settings block, then paste it over CONFIG near the top of the script in the downloaded file.
| Setting | What it changes | Example |
|---|---|---|
fur, stripes, chest, muzzle | Coat colours | fur: '#e09a4a' |
eyes, nose, innerEar, whiskers | Face details | eyes: '#5fa8d8' |
outline | The line around every shape | outline: '#3a332b' |
fluff | Size of the cheek tufts, chest bib and tail | fluff: 0.3 |
showStripes | Tabby marks on or off | showStripes: false |
meowChance, meowText | How often it meows, and what the bubble says | meowChance: 0.5 |
name, toy | Title text and yarn colour | name: 'Miso' |
2.5D or soft 3D?
This version is lighter to run, has cleaner lines, and suits stickers, small screens and playful pages. The soft 3D cat has shaded, rounded fur and a head that really rotates in space. Both use the same settings names, so a settings block copied from one works in the other, apart from outline, which only this one uses.
How to take it
1. Download the file
Press Download the HTML file above. You get layered-2-5d-cat.html. Open it in a browser, or upload it to your own site. It works offline.
2. Copy the code
View the code
Loading…3. Embed it on your page
<iframe src="https://aspect.tools/flat-cat" style="border:0;width:100%;max-width:560px;aspect-ratio:1/2.1" title="Layered 2.5D Cat" loading="lazy"></iframe>
License and credit
Layered 2.5D Cat, 2026 series, by aspect.tools (https://aspect.tools/2-5d-cat), MIT License
A visible credit is appreciated but not required.
Questions
What does 2.5D mean?
Flat drawings arranged in layers that move by different amounts, so the picture seems to have depth without being a real 3D model.
How does the cat turn its head if it is flat?
The ears, head, cheeks, stripes, eyes, muzzle and nose are separate layers. Each slides by its own depth when the cat looks at the yarn.
Can I recolour it?
Yes. Use the panel under the cat or edit CONFIG in the file. There are presets for grey tabby, orange, black, white and tuxedo.
How do I pick the cat up?
Press on the cat and drag upward. It hangs by the scruff until you let go.
Is it lighter than the 3D cat?
Yes. It draws far fewer shapes per frame, so it runs smoothly on slower phones.