Skip to content
Limited timeStarter is now $9 a month instead of $20.See plans
charmotion

How to Design an Animated Mascot for Offline & Network Error States

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Design an Animated Mascot for Offline & Network Error States, with Charmotion demo characters

Use five mascot moods for offline and network error states, one per situation: offline, retrying, needs action, reconnected and normal. Pair each animation with a short line of text that says what happened and what to do, and map every state to one number so the app can drive the mascot. Keep motion brief so the error never becomes the main event.

Key takeaways

  • Treat offline, slow network and server errors as three different moments, each with its own mascot response.
  • Keep the mood set to five moods and map each app state to one mood number.
  • Pair every mascot animation with text that says what happened and what to do next.
  • Never use happy for a failed action; reserve it for a real success such as reconnecting.
  • Test airplane mode, throttled networks, forced server errors and reduced motion before you ship.

Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.

What is the difference between an offline state and a server error?

This guide covers how to design an animated mascot for offline and network error states, from the moods and copy to retries and the Rive wiring. Start by separating three cases, because each one needs a different response from the character.

  • Offline: the device has no connection. The app may still show cached content, so the mascot should explain the gap and stay out of the way.
  • Slow network: requests take too long. The mascot should show work in progress, not failure, until a timeout you choose is reached.
  • Server error: the connection works but the request fails. The mascot can show the failure, and the user needs a clear next step.

A single "something went wrong" pose for all three teaches users nothing. Give each case its own mood, even if all of them use the same character.

Which mascot moods cover offline and network errors?

Keep the set small. Most apps need five moods, and each one maps to a single situation. The numbers below are the mood values used by Charmotion characters, but the same table works with any Rive mascot that has matching states.

App stateMood numberMoodJob of the mascot
Online, normal use0idleCalm breathing loop, no message needed
Offline or server error4sadOne readable pose beside the message
Retrying5loadingShows work in progress while a request runs
Needs user action9attentionPoints at the fix, such as turning on Wi-Fi
Back online1happyShort confirmation, then return to idle

Two rules keep this honest. First, never use happy for a failed action. Reserve it for a real success, such as reconnecting and sending the queued change. Second, do not use sleeping for offline. A sleeping character suggests the app is idle, not disconnected, and users will read the wrong message.

Each row should be a different picture. If sad and loading look alike at 48 pixels, users will not tell a failed request from a running one.

How should the mascot move when the connection drops?

Motion should be small and brief. The character has one job: confirm that something changed and draw the eye to the message. A mascot that performs for several seconds turns a network problem into the main event.

  • Play the change once, then settle into idle. A long, repeating sad loop makes a short outage feel like a mood piece.
  • Match the motion to the wait. Use the loading pose for a retry that runs for a few seconds, and a still pose when the device stays offline.
  • Check the face at the size it appears. A 48-pixel banner icon needs bigger eyes and a clearer mouth shape than a full-screen empty state.
  • Hide small extras such as sparkles or question marks on error screens if they compete with the message. Many character sets offer an accents switch for exactly this.
  • Avoid motion that shakes the layout. A mascot that moves its container makes the error feel like a second error.

For background on picking lengths for loading and feedback, see mascot animation states for loading, success and error.

What should the words say, and how should retries look?

The mascot never carries the message alone. Write one line that says what happened and one line that says what to do. "You are offline. Your changes are saved on this device." is more useful than "Oops!", because the user knows the data is safe and knows when to act. Only write that second sentence if your app really keeps the changes.

Retry design has three parts:

  1. Show the retry button next to the mascot, not inside it. The character signals; the button does the work.
  2. Use loading only while a request is running. When the request ends, change the mood at once so the mascot never shows progress for a request that already failed.
  3. Stop after a set number of attempts or a timeout. Settle on the sad pose with a clear action, such as "Try again" or "Check your connection." Endless loading tells users the app is stuck.

For screen readers, put the status text in a live region so the change is announced. The mascot itself should be decorative, with a text label that carries the meaning.

How do you wire offline states to a Rive mascot?

In Rive, a mood is usually one number on a data-bound property or a number input on a state machine. Rive's editor notes say data binding can drive any property from live data in an app, and state machine inputs come as number, boolean or trigger values. For an error mascot, a single number is easier to manage than several triggers: one value holds the whole state, and the next state overwrites it.

Keep the mapping in one function so designers and developers read the same table:

const MOOD = { idle: 0, happy: 1, sad: 4, loading: 5, attention: 9 };
function moodFor(appState) {
  switch (appState) {
    case 'offline': return MOOD.sad;
    case 'serverError': return MOOD.sad;
    case 'retrying': return MOOD.loading;
    case 'needsAction': return MOOD.attention;
    case 'reconnected': return MOOD.happy;
    default: return MOOD.idle;
  }
}

Write the returned number to the mood property of your character's view model, or to the number input of its state machine, using the calls your runtime provides. The web runtime exposes state machine inputs by name and reads or sets number and boolean inputs through a value property. Android and Flutter use their own setter calls. Check the method names against the runtime docs for your version, because they change between releases.

Where the file lives matters. A .riv that ships inside the app or is cached by the website can play while the network is down. A file fetched from a server cannot arrive during an outage, so keep a static image as the fallback. For the state wiring, see Rive state machine inputs and moods and how to drive mood states from app state.

How do you test offline states and respect reduced motion?

Test the states on a real device and in the browser, because a simulator can hide slow paths. Run this checklist before release:

  • Turn on airplane mode on a phone, use the app, then turn it off and watch the reconnect moment.
  • Throttle the network in the browser developer tools to confirm the loading pose holds for the right length and then stops.
  • Force a server error from a test endpoint and check the sad pose, the message and the retry button.
  • Turn on the reduced-motion setting on each platform. The mascot should show a still pose, and the text should carry the full message.
  • Check the contrast of the message against the banner, and confirm that a screen reader announces the change once, not on every frame.

Platform details differ. For SwiftUI and UIKit, see Reduce Motion in SwiftUI and UIKit. For the general rules, see accessible animation and reduced motion.

Can you get these moods without a motion designer?

Many teams need these five moods for a mascot they already have, but no one on staff can animate them. Charmotion creates a character from one finished image of a character facing the viewer, and you pick the animations it gets, at one credit each (idle is free). The output is one Rive file with a mood number for each animation, so the mapping above works without new code. Characters have no one-shot triggers, so show a success with happy and an error with sad. Plan details are on the Charmotion pricing page. Charmotion covers a fixed set of ten animations, so a state that needs a custom pose still needs hand animation.

If you already have a Rive mascot, use the same mood numbers and skip this step.

Design an animated mascot for offline and network error states

  1. List the situations. Write down each case the app can hit: offline, slow network, server error, needs user action and reconnected. Remove any that the app cannot detect.
  2. Assign one mood to each. Map every situation to one mood. Use sad for failures, loading for retries, attention for fixes the user must make, happy for real success and idle for normal use.
  3. Write the copy. Write one line that says what happened and one line that says what to do. Keep both beside the mascot, not inside the animation.
  4. Set the motion length. Play each change once, then settle into idle. Keep the loading pose bounded by a timeout, and use a still pose for long offline periods.
  5. Map states to one number. Put the mapping in one function that returns a mood number, then write that number to the Rive mood property or input.
  6. Test the paths. Test airplane mode, throttled networks, forced server errors and reduced motion on real devices before release.

Frequently asked questions

Should the mascot appear on every error?

No. Use it where the user is blocked or must act, such as a lost connection during checkout or a failed sign-in. For a small, retryable problem, a plain inline message with an icon is often enough. Keep the same mascot on every screen so users learn the signal, and do not add it to every toast or form field.

Can one mascot cover both offline and server errors?

Yes, if the copy explains the difference. Both can use the sad pose, but the text must say whether the device has no connection or the server failed. Use loading for retries and attention when the user must change something, such as turning on Wi-Fi. Without specific text, users cannot tell a dead connection from a broken server.

Will a Rive mascot play when the phone is offline?

It can, if the .riv file is bundled with the app or cached by the website. A file loaded from a server needs the network to arrive, so it cannot appear during an outage. Keep a static image as the fallback for first visits, and test the offline path on a real device before you rely on it.

How long should the sad pose stay on screen?

Long enough to read the message, then settle back to idle while the banner or button stays visible. A single play of the sad clip, which runs 3.0 seconds in the Charmotion set, fits most messages. Do not loop it. A repeating frown makes a short outage feel like a mood, and users stop reading the text.

Sources

Related guides