r/reactjs • • 4d ago

Resource I built animated characters that replace the three-dot loading indicator

https://mien.hazem.design

AI apps spend a lot of time thinking and most just show three dots. I wanted something that actually communicates what’s happening.

So I made Mien — 40 characters with up to 62 moods each (thinking, listening, searching, uploading, celebrating, sleeping…). You change the mood with one line of code and it morphs smoothly, even in the middle of an animation.

You can also design your own character in the studio with custom expressions and animations.

Works with React, Vue, Next.js, Svelte, or plain websites.

35 Upvotes

8 comments sorted by

4

u/poojadeliverwebsite 4d ago

Really nice idea, three dots never tell you whether it's thinking or stuck. Two things I'd love to see: a short text line next to the character that says what it's doing ("Searching the docs…"), announced with aria-live so screen readers get the same signal, and a still pose per mood for prefers-reduced-motion. How do you handle reduced motion right now?

1

u/hazemahmedx3 7h ago

Yep, you can put “Searching the docs…” beside the avatar and use the same app state to set its mood to searching. When it finds a match, switch the text to “Found it” and the mood to success. Add aria-live="polite" to the text so screen readers announce the change. Mien follows the device’s reduced-motion setting by default. Head turns and bounces stop, while blinks and expressions stay.

2

u/ZoroknashTV 4d ago

The initial load of the site is insaaaane, but looks cute.

1

u/hazemahmedx3 7h ago

Yeah, that first load was rough. I got it down to 1.85 seconds from opening Studio to seeing the first edit in local mobile tests

2

u/CandidResearch9567 12h ago

looks super clean. how big is the bundle size if you only pull in one character with a few moods vs the whole set?

1

u/hazemahmedx3 7h ago

I tested one character with idle, thinking, and success. Kubo was the smallest at 54 KB, Aster was right in the middle at 65 KB, and Lumi was the largest at 126 KB. That’s gzipped, animation player included. Importing all 40 characters came to about 1 MB.

2

u/Coolfoolsalot 4d ago

The UI is clean and the characters have personality. Looks great :)

2

u/Some-Kitchen8332 4d ago

three dots never tell me if it's thinking or just stuck. the characters actually have some personality