Slot Spine Animation: How We Build Symbol Animations for HTML5 Slots
Reviewed by Sagar Dabas, Founder, Gamix Labs · Updated
Symbol animation is where a slot starts to feel alive. A win lights up a few symbols for a second or two, and that moment has to read instantly, look good on a phone and never slow the game down.
This guide shows how we build Spine symbol animations, using the real files from one of our slots, Toon Town Trouble: what the rigs contain, how long each animation runs, and how the game code plays them.
Why slots use Spine for symbols
A frame-by-frame sprite sheet stores every frame of a win as an image. Ten symbols with 40-frame wins are 400 images to download and keep in memory on a phone. Spine stores the art once, cut into parts, and stores the motion as data: bones, meshes, scale and colour over time. For slot symbols that means:
- Many states from one rig. The scatter below holds two idles and a win on the same skeleton and the same art.
- Control in code. The game plays, queues, loops and stops each animation without a new export.
- Easy timing changes. Making a win shorter means moving keys, not rendering frames again.
Sprite sheets still suit short, chaotic effects such as fire and energy bursts, so most games mix both.
What a slot symbol animation has to do
A slot symbol has a few jobs, and each one is a separate animation:
- Idle: a still or barely moving state for the hundreds of spins where nothing happens.
- Land: a short reaction when a special symbol, such as a scatter, stops on the reels.
- Win: the main moment, played on every symbol in a winning line.
- Feature states: anything a mechanic needs, such as a wild expanding or a symbol transforming.
Up to fifteen or twenty-five symbols can animate at once on a 5×3 or 5×5 grid, so every symbol has to look good and stay cheap.
A scatter symbol, from rig to win loop
This scatter from Toon Town Trouble is a full Spine rig: 46 bones, 40 slots and 68 mesh attachments, built in Spine 4.2. It has three animations: Idle, Idle2 (a 2-second variation so the reels never look frozen) and Win, which also runs 2 seconds.
Why so many meshes on a small symbol? The face squashes, stretches and blinks, and the spiky frame flexes. Meshes let one image bend smoothly instead of being cut into dozens of pieces. We keep the expensive deformation in the win animation and keep the idle light, because the idle plays far more often.
This clip from our Spine showreel shows the rig behind another character: a white bison with its bones visible on the left, and the finished animations beside it.
Cutting the art before rigging
Good Spine work starts in the art file. A symbol is split into the parts that have to move, and the areas hidden behind them are painted in, so nothing shows a hole when an arm lifts. How far it is cut depends on how much the symbol acts. These are the counts in our Toon Town files:
| Symbol | Slots (layers) | Mesh vertices |
|---|---|---|
| A, K, Q, J, 10 (one shared file) | 10 | 480 |
| Scatter | 40 | 1,021 |
| Officer Oink | 41 | 1,349 |
| Dog | 51 | 1,199 |
| Woman | 55 | 1,058 |
| Wild (the truck) | 195 | 3,173 |
| Scientist | 178 | 8,393 |
The five letters need ten layers between them, five of them additive. The Scientist costs far more because he is also the side character, with ten animations of his own.
Two rules apply to all of them. The pose a symbol rests in must match the still image the reels show, or players see a jump when the win starts. And blend modes are a budget: the scatter uses 11 additive layers and the dog only three, because every change of blend mode can break a draw batch.
A character symbol with acting
Character symbols carry the theme, so they get more acting. This dog has 68 bones and 51 slots, and its Win runs 2.17 seconds: a hat tip, a wave and a settle back into the frame. Two details matter on a slot grid:
- Stay inside the frame. Hands and hats can break the border for drama, but the character must land back in place so the grid stays tidy.
- Loop cleanly. If the game holds the win longer than one cycle, the last frame has to flow into the first.
The whole symbol set, in numbers
A slot is a set, not one hero symbol. Here is every animated symbol in Toon Town Trouble, read from the Spine files:
| Symbol | Bones | Win animation |
|---|---|---|
| Wild (the truck) | 96 | 2.33 s |
| Scientist (high) | 100 | 2.67 s |
| Dog (high) | 68 | 2.17 s |
| Woman (high) | 64 | 2.0 s |
| Officer Oink (high) | 44 | 2.0 s |
| Scatter | 46 | 2.0 s |
| A, K, Q, J, 10 (low) | 8, shared | 1.33 s each |
The pattern is deliberate. The five low symbols share one small skeleton with 8 bones and a short 1.33-second win, because they land on almost every spin and often win several at once. The high symbols and the Wild get full characters with 44 to 100 bones and wins of about two seconds, because they win less often and carry the theme. Spending the animation budget where players look is most of what makes a symbol set feel rich without slowing the game.
Some characters do more than one job. The Scientist is also the side character next to the reels, with idle and action clips of his own, a landing clip, and a reaction when two Scatters are on the board and the third could still land.
Object symbols need less acting but the same care. The drum, the money tree, the axe and the juggling clubs in this clip, also from our showreel, each get one clear motion that suits the object.
Big wins: start, loop and end
Big win titles work differently from symbols, because the game, not the animator, decides how long they stay on screen. Our big win file has five animations:
| Animation | Length | When it plays |
|---|---|---|
start | 1.0 s | Once, when the big win begins |
loop | 2.0 s | Repeats while the win counter runs |
end | 0.87 s | Once, to close the celebration |
fast_start | 0.4 s | When the player skips, or a bigger tier takes over |
fast_end | 0.4 s | When the player skips the closing |
In the game client (TypeScript with the Spine runtime), the start plays once and the loop is queued behind it. If the win continues from a lower tier, the short version plays instead, and players who prefer reduced motion get the loop without the entrance:
if (this.reduced) {
state.setAnimation(0, clips.loop, true);
} else {
const entry = state.setAnimation(0, carried ? clips.fastStart : clips.start, false);
state.addAnimation(0, clips.loop, true, 0);
}
Asking an animator for these five clips, instead of one long video, is what lets the game skip, upgrade and stop wins without a visible jump.
The same idea works for any win title. Here are a Big Win, a Mega Win and four jackpot titles from our showreel, each with its own entrance and exit.
Every win tier follows the same pattern
The start, loop and end split is not only for the first big win. Toon Town Trouble has four celebration tiers, each its own Spine file with the same set of clips:
| Tier | Start | Loop | End | Fast versions |
|---|---|---|---|---|
| Big win | 1.0 s | 2.0 s | 0.87 s | 0.4 s |
| Mega win | 1.0 s | 2.0 s | 0.6 s | 0.4 s |
| Super win | 1.4 s | 2.0 s | 1.0 s | 0.4 s |
| Max win | 0.93 s | 2.0 s | 0.54 s | 0.5 s and 0.28 s |
Because every tier shares a 2-second loop and the same clip names, the game can climb from Big to Mega to Super in one celebration, playing each tier's short start on top of the last, with the same code for every tier.
How the files reach the game
- One merged atlas. All the game's skeletons are exported from one Spine project into one shared atlas with 4096-pixel pages and premultiplied alpha.
- Only what the game draws ships. A build step reads the list of skeletons the game uses and trims the atlas to their regions. Six skeletons in the export, such as an unused hammer and a spotlight, never reach players.
- Stills at rest. Each symbol has a still image for the many spins where it does not win. A resting board costs one sprite per cell, and a symbol's skeleton runs only while it plays its win.
- One shared scale. Every symbol was composed for a 171-pixel cell, so the game draws them all at one scale and they line up without per-symbol fixes.
Symbols in a full game
A symbol is only finished when it works with the reels, the win tiers and the features around it. This trailer from our YouTube channel, for the slot Ali Baba's Golden Farm, shows it all together: symbols landing, stretched wilds, reel anticipation and three win tiers.
How we keep symbol animation fast
- One atlas per game section. The Toon Town symbols share packed atlas pages, so the reels draw in few batches.
- Meshes where they show. Faces, bending shapes and squash and stretch; plain images everywhere else.
- Short, reusable loops. Two-second wins and idle variations that repeat without seams.
- Effects as their own layer. Glows and particles sit in separate effect files, so they can be tuned or switched off on slow devices without touching the rig. We build many of those effects in SlotVFX, our own effects editor.
- Test on a phone, not in the editor. A grid of twenty animating symbols behaves very differently from one symbol on a desktop.
A checklist for your next symbol set
- List every state each symbol needs: idle, land, win and any feature states.
- Agree the win length with the game designer before animating (we use about 2 seconds).
- Split big wins into start, loop, end and fast versions.
- Keep idle animations light and save mesh deformation for wins.
- Pack symbols into shared atlases and test the full grid on a mid-range phone.
- Ask for one naming rule for every symbol, such as
IdleandWin, so the code stays simple. - Check that the resting pose matches the still image on the reels, and that win loops end on the pose they start from.
- Export for the exact Spine runtime version the game uses (ours is 4.2), and test in the game engine, not only in the Spine editor.
- Get the source files: the .spine projects and layered PSDs.
If you are comparing partners, our guide on how to hire a slot animation studio lists what to ask, and our Spine handoff post covers the step from approval to game.
If you need slot symbols animated, our Spine animation team builds rigs like these for HTML5 slots in Cocos Creator and PixiJS, and you own every source file on final payment.
Related guides
- Animating Slot Symbols in After Effects: A Beginner's Guide
- The Evolution of 2D Animation in Slot Games: Modern Techniques & Production Insights
- Why Good Spine Animation Can Lose Its Impact in a Slot Game
FAQs
Why do slot games use Spine for symbol animation?
Spine stores the art once and the motion as data, so one rig can hold idle and win animations without a full image for every frame. The game can play, queue, loop and stop each animation in code.
Do we get the Spine source files?
With Gamix Labs, yes. On final payment you own 100% of the art, including the .spine projects and layered PSDs.
How many bones does a slot symbol need in Spine?
As few as the motion needs. In our Toon Town Trouble slot, the animated scatter uses 46 bones and the character symbols around 68, because they bend, squash and wave. A simple low-paying symbol can work with a handful of bones or none at all.
How long should a symbol win animation be?
Our win loops are about 2 seconds, so they finish inside a normal win presentation and can repeat cleanly if the game shows the win longer.
Why split a big win into start, loop and end animations?
Because the game decides how long a big win shows. The start plays once, the loop repeats while the counter runs, and the end closes it. Short fast_start and fast_end clips let the game skip or upgrade a win without a jump.
Are mesh deformations bad for performance?
Meshes cost more than plain images, so we use them where they show, such as faces and bending shapes, and keep idle animations light. Many symbols animate at once on a slot grid, so every symbol has to stay cheap.
