Avatars

Avatars is an avatar editor, and almost all of it happens in one place: a bar at the bottom of the screen, this writing is about the bar.

Every choice you make, from the shape of a face to the shade of a hat, is a tab in that bar or in a bar that opens on top of it.

So the bar carries the whole product. It has to show where you are, what you can change next and how to get back, without ever covering the avatar you’re changing. This piece is about that bar: how it’s laid out, how bars stack, and the motion that holds the stack together.

StyleHeadwear
FaceHairOutfitFrame

The bar at rest

The editor opens on a single dark bar: undo and redo in a recessed well, then Face, Hair, Outfit and Frame, then a menu for downloading and starting over. Nothing is selected. Undo and redo are dimmed because there’s nothing to undo yet. The last tab used to be called Color. It’s Frame now, because it colours what the avatar sits in, and every other bar already has a Colour of its own.

Selection is one white shape, not a style on each tab. Open Hair and the shape appears behind it; move to Face and it slides across with a small spring rather than vanishing from one tab and reappearing on the next. The bar it opens has its own × at the end, and it works the moment it appears: tap it while the bar is still arriving and the bar goes straight back. Tapping the selected tab again closes it too, so the same control opens and closes.

The menu behaves like a bar too. It doesn’t float over the main bar: it takes the bar’s place, as another dark bar holding Download, Copy link and Start over, with its own × to bring the tabs back.

StyleHeadwear
FaceHairOutfitFrame

One bar in focus

Choosing a tab opens its bar above. The bar is laid out left to right in three parts. At the left is whatever gives the row its context and must never scroll away: None, the switch between an outfit’s two garments, and on a colour bar the ring and the wheel. In the middle is the row itself, the options for the tab you’re on. At the right are tiles for anything that needs a bar of its own, such as Colour, and after a short divider the bar’s own two buttons, expand and close. When a category has more than one tab (Hair has Style and Headwear), they sit in a small pill just above the bar rather than inside it, so the bar itself holds only things you can pick.

Expand and close sit together and look alike because they do the same kind of thing: they change the bar, not the avatar. Expand is four arrows pointing outward, close is the ×, and neither ever moves or scrolls.

Every bar is 64 pixels tall, whatever it holds. Tabs, options, colours and tiles all sit in the same height, so as bars open and close the stack reads as one object changing shape rather than a pile of panels.

The bar on top is always the one in focus. Everything else in the stack is there to tell you where you are.

Switching tabs in place

Moving between tabs in the same bar isn’t a new level, so nothing grows or sinks. The bar stays where it is and its width eases to fit the new row over 150 milliseconds, while the new options cross in from a quarter opacity. When putting on a hat brings in a Colour tile, the bar widens to make room for it rather than jumping.

StyleHeadwear
FaceHairOutfitFrame

The option you’ve chosen sits on a soft grey square rather than inside a dark outline. The row stays calm, and the choice still reads at a glance. In rows where colour matters (hairstyles, facial hair, hats, tops) only the chosen option is drawn in its colour; the others stay grey, so the colour itself points at what you picked.

Tabs or tiles

A category’s tabs switch what its bar shows; they don’t take you anywhere. That suits Hair, where Style and Headwear are two lists of the same kind. It doesn’t suit Face. A face is ten parts (shape, skin, facial hair, eyes, ears, nose, nose piece, mouth, chin and glasses), each with its own options, and ten tabs in a pill stop reading as a switch. On a phone they ran off the screen.

So Face has no tabs. Its bar is a row of tiles, one per part, each drawn as the little head with that part filled in. A tile opens the part’s own bar on top, and closing that bar brings you back to the row. The pill is kept for what it does well: two or three views of one thing.

The row doesn’t fit either, so it scrolls. Where it stops used to be chosen by hand, just after Nose. Now it follows the same rule as every other bar: the bar keeps to one width, and whatever is past it slides under a fade at the edge. Six parts show, the seventh is already dissolving, and the rest are a short scroll away or one press of expand.

A few smaller rules came with it. A tile for something you can switch off, like facial hair when there is none, stays faded while it’s off. Every colour wheel is the same rainbow wheel with a white stopper in its middle, including the button that opens every colour, so a wheel always means colour. Colour tiles are called Colour, except the one for skin on the Face bar, which says Skin, because a face has more than one colour in it. Facial hair only appears for the man. Shape offers every head there is, and picking one changes the outline and nothing else: the eyes, ears and hair you had stay exactly as they were. In the three-quarter view, where every head comes with its own features, Face is just two tiles, Skin and Head. And tapping a part of the avatar itself skips the row and opens that part’s bar.

Tiles also come and go with what they apply to. An outfit drawn with a collar trim or a pattern (stripes, checks) brings colour tiles to the Outfit bar for them, Trim and Pattern, and takes them away when you pick a plain top. Both start on As drawn, the rainbow wheel, so the outfit opens in the colours it was drawn in; choose a colour and the wheel turns solid. The tile is called Pattern, not Stripes, because the same tile colours the checks on a shirt. Glasses bring a Lenses tile to the Face row the same way, starting clear, and the eye patch, which has no lenses, doesn’t.

Some choices aren’t a colour at all. A top can take a fabric: checks like gingham, tartan and argyle, or prints like breton stripes, polka dots, leopard and florals. The simple ones are one colour on white, so they keep the Colour tile. A woven tartan or a printed leopard has no single colour to pick, so its Colour tile gives way to a Colourway tile, and its options are drawn as the cloth itself, rather than as hex swatches. You choose the shirt, not the numbers behind it.

The same goes for an outfit’s plain colours. Its Colour bar doesn’t show dots: it shows the top itself in each colour, checks and collar included, so you see the blue shirt before you pick it. Headwear works the same way: its colours are the cap itself, or the hat, in each colour. Headwear also has one colour, whichever hat is on, so a blue cap swapped for a beret gives a blue beret rather than the colour the beret happened to be drawn in. The hats whose colours are the hat, the jester’s cap, the sombrero and the chef’s hat, have no Colour tile at all. Both bars start like every colour bar, with the ring, the wheel and, for a top, the Fabric tile at the left, where they stay while the shirts scroll.

The ring is the one control on a colour bar that isn’t a colour. It is a small ring of dots in shades of the colour you’re wearing; press it and the row becomes those shades, light to dark, while the ring itself turns many-coloured to say it will take you back. The brightness you choose there is remembered. Go back to the colours and every one of them is shown at that brightness, so choosing a deep green and then changing your mind about green doesn’t throw the depth away.

Growing in place

A tab that opens a new level works differently: the new bar doesn’t slide in from anywhere, it grows where it will sit. It starts as a chip the size of the tile you pressed, right where that tile was, so Colour grows out of the Colour tile; it reaches its full 64 pixels of height while it’s still narrow, then widens out to its full row. Height first, then width, so it never looks squashed or stretched on the way.

StyleHeadwear
FaceHairOutfitFrame
  • Real speed 1x
  • Slowed down 2x
  • Slowed down 3x

Its contents wait until it has widened. Then each option slides up ten pixels as it fades in, twelve milliseconds after the one before it, so the row fills from left to right. If the category has tabs, their pill arrives last, once there’s a bar for it to sit on. Bringing up a new bar was later tightened to 0.8× its first length, every step together (the fold, the slide, the grow, the options and the tabs), so a full open takes about half a second.

Until it starts to grow, the new bar isn’t on screen at all. An earlier version put its surface down the moment you tapped, at two thirds of its size, and left it there as an empty slab over the other bars while the stack made room. Going from Outfit to its colour, that blank shape sat on top of the outfits for almost half a second before anything happened. Now nothing new appears until there’s a place for it, and when it does appear it comes out of the tile you pressed.

An earlier version slid each new bar up from behind the one it came from. It read well as a stack, but every opening had two bars moving at once, and a bar that grows where it will stay says the same thing more simply: this is the bar you’re on now.

The stack makes room

When a third bar opens, say Colour from inside Hair, the stack makes room one bar at a time. First the main bar folds away into a thin tray. Then the Hair bar slides down into the space it left. Only then does Colour grow in above. Each move finishes before the next begins, so there are never two bars moving at once, and your eye can follow every step.

StyleHeadwear
FaceHairOutfitFrame
  • Real speed 1x
  • Slowed down 2x
  • Slowed down 3x

Draw order matters here. A bar moving into the stack drops behind the others straight away. A bar coming back out, like the main bar when you close Hair, stays behind the bar above until it has landed, so it always comes out from under, never over.

Muting what’s underneath

The bar under the top one stays fully drawn, so you can see where you came from and step back with a single tap on any of its tabs. But it shouldn’t compete with the bar on top.

StyleHeadwear
FaceHairOutfitFrame

Lowering its opacity would have been the easy option, but a faded bar reads as disabled, or as something still loading. Instead it is muted in several small ways at once: its art loses its colour and some contrast and gets a little lighter, its labels turn pale, and its shadow thins to a hairline. The one tile that leads to the bar above, Colour here, keeps its colour and its grey backing, so you can see the thread from one bar to the next.

The main bar becomes a tray: a grey strip 34 pixels tall, inset from both ends, peeking nine pixels out from under the bar above. It isn’t something to read, just a reminder that the floor is still there. Only one tray ever shows, so the stack never becomes a deck of cards.

Closing

Closing plays the opening backwards, a little faster. The bar sinks back as it fades, shrinking slightly with a two-pixel blur, over 170 milliseconds with an ease-out. Only then does the stack move back, one bar at a time: Hair rises to its place, and the main bar unfolds from the tray. Exits are quicker than entrances: once you’ve decided to leave, the interface shouldn’t make you watch.

StyleHeadwear
FaceHairOutfitFrame
  • Real speed 1x
  • Slowed down 2x
  • Slowed down 3x

Long rows and small screens

Some rows are long: there are fifty-two heads in the three-quarter view and more than forty tops. A long row doesn’t stretch across the screen. Every bar keeps to about one width, the width of the Outfit bar showing nine things in all: None, four tops, Colour, Fabric, expand and close. It’s the width that counts, not the number, so a row of small things shows more of them before it reaches it; a colour bar fits eight or nine swatches. A row that already fits is left alone, with no fade at all.

Only the middle is ever trimmed. What’s at the left and what’s at the right always show, so the row scrolls between two fixed ends. The None tile is the clearest case: it sits at the far left of the Outfit bar, the same eight pixels from the bar’s edge on all three sides with its corner cut to match the bar’s, and forty tops pass beside it without moving it.

Where the row is cut, it doesn’t stop; it dissolves. The edge is a wide, even fade that also blurs what’s under it, so the last top goes soft before it goes white. A gradient alone looked like a white strip laid over the row. The fade at the right is there from the start and slides out to the right when you reach the end of the row. The one at the left only arrives once you’ve scrolled by hand, sliding in from the left, because until then nothing has gone past that edge.

The row moves on its own in one case only: when what’s chosen changes. Pick a top that’s half under the fade, or one from the panel of everything, and the row glides to it and lands with a whole tile at its left edge, never half of one. Otherwise it stays where you left it. Picking a colour doesn’t pull the row back to the shirt you’re wearing, and closing the bar and opening it again brings you back to where you were looking, not to where the selection is.

On a phone the screen sets the width instead, and the row still scrolls on its own between the two fixed ends, so None and the close button are always where you left them. Every bar opens already scrolled to what’s selected. A bar that slides down into the stack scrolls to the tile that leads up, so the thread stays in view. A category’s pill of tabs scrolls the same way when it’s wider than the screen, rather than running off the edge.

Everything at once

Expand is for when scrolling is the wrong tool. Press it and the bar itself grows into a panel: it widens from where it sits and rises until every option is showing, ten across, over its own place and the place of the bar beneath it. Nothing new arrives on screen. The bar you were on becomes the panel, and the button that opened it becomes the button that closes it.

StyleHeadwear
FaceHairOutfitFrame

While the panel is open the bar beneath is put away completely, not left peeking out at the sides; two layers of options behind each other were hard to read. All that’s left of it is a thin tab under the panel’s lower edge, grey if it’s the dark main bar and white if it’s a white one, the same tray that sits under any other bar. It says the floor is still there.

Every colour works the same way. The wheel opens a grid of colours, twelve hues from pale to deep and a row of greys, as the same panel growing out of the Colour bar. Its one button, minimise, sits outside the panel, beside the colours and halfway up them, so it never takes a cell’s place. Picking anything in a panel closes it, and the bar comes back wearing the choice.

The same manners hold lower down. The bar under the top one is muted, but its options still work: point at one and it shows in its real colour, and picking it chooses it and closes the bar above in the same move.

Clicking away

A click anywhere outside the editor closes whatever is on top: the panel if one is open, otherwise the top bar. It does that once. Clicking away again closes nothing more, however many times you do it, until you’ve used the editor again. An earlier version closed a level with every click, and two stray taps on the page could undo three steps of getting somewhere. The avatar doesn’t count as outside: tapping a part of it still opens that part’s bar.

Three icons that aren’t heads

Three icons break the head rule on purpose. Eyes is the eye itself, with no head around it: a grey almond, its white, a grey iris and a catch-light. Nose is the nose itself and Ears is one ear, both line drawings with no fill, in the same pale grey, each with a fine outline and slightly heavier inner lines (the nostrils, the curl of the ear). A nose, two ears or two dots on a tiny head read as a face, while the feature alone is instantly its tab. Selected, the eye turns from grey to ink with its whites staying white, and the nose’s and ear’s grey lines turn ink, so each reads as picked in its own way. The eye is drawn a little larger than its first version so it holds its own beside the heads.

A colour is the whole shirt

A patterned shirt isn’t one colour, so its Colour bar doesn’t offer hex codes. Each tile is a colourway: the base, its lighter panel, the inside of the collar, the pattern and the trim, chosen together as one shirt. A pastel check shirt has checks a stronger tone of the same hue, with the collar’s inside deeper still. A striped tee pairs bold stripes on a pale ground with a contrasting collar and cuffs. The tiles show the garment alone, with no neck or skin, framed tight round that shirt’s own outline, so seven shirts sit side by side like a rail. The fabric swatch and the colour wheel still close the bar for anyone who wants to go further. One outfit breaks the layering: the hooded jacket is worn with the hood up, so it draws over the head rather than under it, framing the face and hiding any hat. Picking it starts it in the green it was drawn in, and its Colour bar recolours every tone of it at once, the folds, the highlights and the stitching. It takes every fabric too: the cloth fills the body, hood and zip, and the folds and highlights become a translucent shade over it, so a tartan or a polka dot still shows the hood’s shape. Its Colour bar is seven whole jackets, blue, pink, red, green, purple, grey and gold, in the same order as the shirts and tees above it.

A new colour doesn’t just appear. For a moment the avatar as it was stays on top of the new one, then it is wiped away at a slant, left to right, behind a wide soft edge, so for under half a second the old colour and the new one meet in a gradient across the avatar. It covers the whole stage, the frame included, and it is only for colour: skin, hair, clothes, lenses, a fabric or a colourway. A new hairstyle or a new top is a different shape, and a shape just appears, because sweeping one outline into another reads as a glitch rather than a change.

When motion is turned off

With reduced motion on, nothing rises, slides, scales or blurs. Bars fade in over 140 milliseconds and out over 110, so a change is still visible without movement. A new colour skips its sweep and simply replaces the old one. Undo and redo, which only sit on the main bar, also work from the keyboard wherever you are in the stack.

StyleHeadwear
FaceHairOutfitFrame
With reduced motion on

One rule, told by motion

Every decision here serves the same rule: one bar in focus, and the rest of the stack telling you where you are. The motion isn’t decoration on top of that rule; it’s how the stack explains itself. A bar grows where it belongs and goes back there when it closes, the bar you came from steps aside instead of vanishing, the bars move one at a time, and nothing on screen ever jumps.

Avatars - Paul Elite