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

How to Use an Animated Mascot in an E-Commerce Loyalty & Rewards Program

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Use an Animated Mascot in an E-Commerce Loyalty & Rewards Program, with Charmotion demo characters

Give the mascot one job per loyalty moment: a welcome, points earned, a reward ready to claim, or a failed redemption. Drive each state from the account data your store already has, using a single mood value, and keep the mascot out of checkout. Test empty, expired and reduced-motion cases before launch.

Key takeaways

  • Give the mascot one job per loyalty moment and keep the list to four to six moments.
  • Map each event to one mood, showing success with happy and errors with sad.
  • Bind the mood to live account data so the animation never disagrees with the points balance.
  • Keep the mascot out of checkout and respect reduced-motion settings.
  • Test zero, expired and failed states before measuring whether the mascot helps.

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 should an animated mascot do in a loyalty program?

This guide shows how to use an animated mascot in an e-commerce loyalty and rewards program without making the program harder to use. The mascot has a small job: greet a new member, react when points arrive, signal that a reward is ready, and say plainly when something failed. The balance, the points number and the deadline stay in ordinary text, and the character supports them.

Keep the list short. A mascot that animates on every click teaches shoppers to ignore it. Most stores need four to six moments:

  • Enrollment and welcome, when a shopper joins the program.
  • Points earned, after a paid order or a verified review.
  • A reward ready to claim, or a tier upgrade.
  • Points about to expire.
  • A redemption that failed, or a balance that could not load.

Anything outside that list should stay quiet. Loyalty pages already carry decisions, and a second moving element competes with the offer. If a moment does not change what the shopper does next, leave the mascot out of it.

Which mascot moods match loyalty events?

Map each event to one mood, then keep the mapping in one place in your code so the copy and the animation change together. The numbers below are the fixed mood values in Charmotion's character files. Any mascot with a similar state number can follow the same plan.

MomentMoodNumberAccent
Welcome to the programwave2none
Points earned or tier upgradehappy1sparkles, on by default
Reward ready to claimhappy1sparkles, on by default
Balance loadingloading5none
Points about to expireattention9exclamation mark, on by default
Redemption failedsad4none
Member inactive for monthssleeping8Z z z, on by default
Support assistant answeringtalking7none

Characters made with Charmotion have no one-shot triggers, so there is no success or error trigger. Show a success with happy and an error with sad, then let the text say what happened, such as 'Points added' or 'Redemption failed, try again.' Moods blend into each other, so a switch from loading to happy reads as a result arriving rather than a cut.

Some moods show small accents by default. Hide them with the accents boolean if they crowd a points total. A reward that expires tomorrow should use attention once, not on every page load.

How do you connect a mascot to live points data?

The mascot should read the account state rather than hold its own copy. Rive's Data Binding does this. A designer defines typed properties in the Rive editor through a ViewModel, and app code reads and writes live ViewModelInstance values at runtime. Property types include Number, String, Boolean, Color, Enum, Trigger, Image, nested View Model and List, so a mood can be a number while a points label is a string.

On the web runtime, the viewModelInstance getter returns the bound instance and viewModel(path) returns a ViewModelInstance. setViewModelInstance assigns an instance without binding it, and bind() applies the instances that were set. In React Native, the useViewModelInstance hook creates an instance from a RiveFile, a ViewModel or a RiveViewRef, and its async option needs @rive-app/react-native 0.4.18 or later. Check the runtime page for your platform before you copy any call, because the APIs change between releases.

For a Charmotion character, the .riv file already includes CharacterViewModelMachine with a number property called mood, and CharacterStateMachine with a number input of the same name. Your storefront code only needs the mapping from event to number:

const MOOD = { idle: 0, welcome: 2, earned: 1, ready: 1, loading: 5, error: 4, expiring: 9, inactive: 8 };

Set mood to the value for the current event, and the character blends to that state. Idle is free on every character, and each other animation costs one credit. Plans are listed on the pricing page. If you have no designer, Charmotion turns one finished character image into this file.

Disclosure: Charmotion is our product.

Rive's free plan exports files that play a Rive splash screen, while paid plans export without it, so check whether Rive is free for your use before you ship.

Should the mascot appear in checkout?

Keep it out of the payment step. Shoppers in checkout are checking addresses, totals and card details, and a moving character near those fields adds noise at the moment they are least patient. Show the points a shopper will earn on the order confirmation page instead, where the mascot can react to a completed purchase.

The same rule covers the cart. A small points preview that updates in text is useful. A character that sits over the total is not. Use a transparent background so the mascot sits on the page without a box, then place it in a corner or beside the reward panel, away from prices and buttons. The guide on putting a transparent animation over content covers the layout rules.

Respect motion settings. When a visitor has asked the system to reduce motion, show the static poster or the final frame and skip the bounce. The reduced-motion guide explains how to check for that preference and what to use instead.

Where on an e-commerce store should the mascot appear?

Start with the places a member already visits. The strongest are the loyalty hub, the account page and the confirmation after a purchase. Each has a clear reason for the mascot to speak: the member is checking a balance, has just earned something, or is deciding what to redeem.

  • Program sign-up: a wave beside the join form, once, on the confirmation screen.
  • Empty rewards page: a sleeping or attention state when the balance is zero, with one clear action. The empty-state guide covers the wording.
  • Order confirmation: happy with sparkles when points are added, with the number in text beside it.
  • Points expiring: attention in the account header, shown only to members with a deadline in the next few days.
  • Support chat: talking or listening states when an assistant answers questions about points, if you already run one.

On a hosted store, the placement route matters. Shopify, for example, lets apps add blocks and embeds through theme app extensions, so a loyalty widget can appear in the theme editor without editing theme code. Other platforms have their own embed methods. Whichever you use, load the file after the balance text is on screen, and never let the mascot be the only place a number appears.

How do you test and measure the mascot before launch?

Test the states a loyalty program creates, not only the happy path. A mascot that works for a member with 1,200 points can still fail for a new member with zero points or for a member whose points just expired.

  1. Load each mood with a zero balance, a large balance and an expired balance.
  2. Force a slow response so the loading state shows for a realistic time, then confirm the text still makes sense without the animation.
  3. Trigger a failed redemption and check that sad appears with a clear message beside it.
  4. Turn on reduced motion in the operating system and confirm the static frame appears.
  5. Check the accessible name on the mascot and confirm screen readers announce the points text, not the animation.
  6. Test on a mid-range phone over a weak connection, since the file loads after the page.

Measure the moment, not the mascot. Compare the claim rate for a reward, or the share of members who open the rewards page, before and after the change. Run the test across at least two full purchase cycles, and do not assume the mascot caused any change you see. A mascot that does not move these numbers should be simplified or removed.

How to use an animated mascot in an e-commerce loyalty and rewards program

  1. Pick the loyalty moments. Choose four to six moments where a member needs a reaction, such as welcome, points earned, a reward ready, points expiring, or a failed redemption.
  2. Assign one mood to each moment. Use the table of moods and numbers so each event maps to one state, with success shown as happy and errors shown as sad.
  3. Prepare the character file. Get a .riv file with the mood number and the states you need, so the same file covers every moment on the store.
  4. Bind the mood to account data. Have the storefront read the member's balance and status, then set the mood value from the mapping constant instead of hard-coding animations.
  5. Keep the mascot out of checkout. Place it on the rewards hub, account page and confirmation screen, use a transparent background, and show the static frame when reduced motion is on.
  6. Test edge cases and measure. Test zero, expired and failed balances, slow connections and reduced motion, then compare reward claims before and after launch.

Frequently asked questions

Can a video or GIF mascot do the same job as a Rive file?

A video or GIF can play a single reward moment, but it cannot read a points balance, and each state needs its own file. A Rive file holds several states in one file and changes them from live data. Rive's runtimes are open source and play any .riv file, so the same file works across the platforms you support. Video is still a reasonable choice for a one-off launch clip.

Do I need the same mascot in the app and on the store?

Not required, but it helps. One character across the app and the store makes the loyalty program feel like part of the same brand. Use the same mood numbers in both places so a success looks the same everywhere, and keep the timings consistent with your brand motion rules.

Will the mascot slow down my store?

It can, if the file loads before the page content. Show a static poster first, start the animation after the points balance is visible, and use only the animations you need. Charmotion files include the animations you pick plus idle, so unused states are not added.

Do I need a developer to connect the points data?

Yes, for the connection itself. A designer can build the ViewModel and states in the Rive editor, but someone has to read your loyalty data and write the mood value in the storefront. The mapping table can be handed over as a single page so the designer and the developer work from the same list.

Sources

Related guides