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

Turning a Static SVG App Icon Into a Micro-Interactive Rive UI Mascot

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: Turning a Static SVG App Icon Into a Micro-Interactive Rive UI Mascot, with Charmotion demo characters

You animate a static SVG app icon into a micro-interactive Rive mascot by splitting it into named parts, adding a few short loops and taps in the Rive editor, and binding one state input that your app sets. Place the exported .riv in a screen such as onboarding, because the home screen icon itself stays static.

Key takeaways

  • Restructure the SVG into named parts before you touch any animation.
  • Keep the mascot to three to five states, each with one clear meaning.
  • Let the Rive state machine handle transitions while the app sets one input.
  • Test at 40 points, in dark mode and with reduced motion turned on.
  • Place the .riv in a screen, since the home screen icon stays static on iOS and Android.

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 changes when a static SVG icon becomes a mascot?

A flat icon is one frame. A mascot needs parts that move on their own: eyes that blink, a body that squashes on tap, a badge that spins while the app loads. The main obstacle in how to animate a static svg app icon into a micro interactive rive mascot is structure. The icon is one flat file with no named parts, so the first job is restructuring it, not animating it.

Keep the scope small. A tap reaction should finish in well under a second, and idle loops usually run 2 to 4 seconds. Three to five states cover most apps: idle, tap, loading, success and error. Beyond that, the extra states rarely read clearly at 48 to 96 points.

The wider workflow from an SVG file is covered in SVG to Rive. This guide focuses on icons that are meant to act as small interface characters inside a product.

How do you prepare the SVG before importing it?

Preparation decides how much rework you will do later in Rive. Set up the file in your vector tool with these rules:

  • One square artboard at the icon's final size, with the mascot centred and about 8 percent padding on every side so bounces do not clip.
  • Group by part: body, left eye, right eye, mouth, and any ear or accessory. Use plain names such as eye-left, because you will reuse them in Rive.
  • Flatten text to outlines and delete hidden layers and unused gradients.
  • Avoid masks that cut across parts you want to move separately. A mask on the face moves with the face.
  • Keep eyes and mouth as closed, separate paths so the blink and the mouth change can scale them.

Export a second SVG only when a shape really differs, such as a closed mouth and an open mouth. Otherwise keep one file. Check the icon at 48 and 96 points, and thicken any stroke under 2 points at icon size, because thin lines often vanish on small screens.

Which micro-interactions should the icon have?

Pick the moments where a mascot helps: a tap, a wait, a finished action and a failed one. Each state gets one motion and one clear reading. The table below is a starting set for a small icon.

StateWhen the app shows itMotion in the iconTiming
IdleScreen at restSlow breathing and a blink every 3 to 5 seconds3 s loop
TapUser presses the iconSquash, then returnAbout 0.4 s, plays once
LoadingRequest in progressEyes glance sideways, body bobs1.2 s loop
SuccessAction completedSmall hop, eyes curve upAbout 0.8 s, then idle
ErrorAction failedShort 2 point shake, eyes narrowAbout 0.6 s, then idle

Keep every motion inside the icon's bounding box. Anything that moves outside it gets clipped where the icon sits in the layout. For how a loading state should behave in the surrounding UI, see how to add a loading animation.

How do you wire the states in a Rive state machine?

In the Rive editor, import the SVG and group the parts into the shapes or bones you will move. Build each state as a short timeline, then connect the timelines in a state machine. The machine handles the transitions, so the app only has to say which state it wants.

  1. Create an artboard at the icon size and add a state machine to it.
  2. Set the idle timeline as the entry state and let it loop.
  3. Add tap, loading, success and error as separate states. Set the one-shot states to return to idle when they finish.
  4. Add transitions from idle to each state, with a condition that reads the state input.
  5. Add a number input named iconState. Use a fixed map: 0 idle, 1 tap, 2 loading, 3 success, 4 error. Write the map into your component docs so developers and designers use the same numbers.

For the tap, add a pointer listener on the icon that sets the state to tap and then returns to idle. Data binding can also drive these properties from live data in the app, so the state can follow an app model instead of a manual call. The differences between the two approaches are in Rive data binding vs state machine inputs, and the core concepts are in Rive state machines.

How do you place the .riv in a React or SwiftUI screen?

Once the file is exported, it loads like any other Rive asset. Rive's runtimes are open source and play any .riv file, so the same file can run in a web page and in native apps. A minimal React component with the canvas runtime looks like this:

import { useRive } from '@rive-app/react-canvas';

export function AppMascot() {
  const { RiveComponent } = useRive({
    src: '/mascot.riv',
    stateMachines: 'MascotMachine',
    autoplay: true,
  });
  return <RiveComponent className="mascot" />;
}

Size the mascot with a class in your stylesheet, not inline style, so the same component works at every breakpoint. The React runtime marks its older useStateMachineInput hook as deprecated in favour of newer data binding hooks, so use data binding for new code and keep input names in one shared file. In SwiftUI, the Apple runtime uses a RiveViewModel to drive the same state machine. The setup is covered in how to use Rive in SwiftUI.

How do you test size, motion and reduced motion?

Test the icon at real sizes. Place it at 40, 56 and 96 points, in light and dark mode, and at 2x and 3x scale. Check four things:

  • Legibility. Eyes and mouth must still read at 40 points. If they do not, enlarge the features instead of the whole icon.
  • Timing. Tap feedback should finish within about half a second so it never delays the next action. Vary blink intervals so the idle loop does not look like a repeating video.
  • Reduced motion. When the system asks for less motion, hold the idle pose or use a short fade instead of loops. The SwiftUI and UIKit approach is in Reduce Motion in SwiftUI and UIKit.
  • File weight. Reuse shapes, avoid embedded raster images and compare the .riv size against your bundle budget.

Test the states from the app, not only in the editor. Trigger a real failed request and confirm that the error state returns to idle. Put the mascot in onboarding, an empty state or a web page, because the home screen icon cannot play the animation.

How to turn a static SVG app icon into a Rive mascot

  1. Prepare the SVG. Use one square artboard at the final icon size, group the shapes by part (body, eyes, mouth, accessory), flatten text and remove hidden layers.
  2. Import and group in Rive. Import the SVG into the Rive editor on an artboard matching the icon size, then group the parts into the shapes or bones you will animate.
  3. Build the micro-states. Create a looping idle timeline and short one-shot timelines for tap, loading, success and error, each returning to idle when it ends.
  4. Wire the state machine. Add transitions from idle to each state and a number input named iconState with a fixed map: 0 idle, 1 tap, 2 loading, 3 success, 4 error.
  5. Connect the file to the app. Load the exported .riv with the runtime for your platform, set the state from app events and keep idle as the default state.
  6. Test at real sizes. Check legibility at 40 points, tap timing, dark mode, reduced motion and file size before placing the mascot in a screen.

Frequently asked questions

Can a Rive animation replace the home screen app icon?

No. On iOS and Android the home screen icon is a static image, so a Rive mascot plays only inside your app or on a web page. Platform limits on animated app icons are different and are covered in the guide on whether you can animate an app icon, which sets out what each platform allows.

Do I need a paid Rive plan to ship this?

You can build the file on the free plan, but exported files there show a Rive splash screen, and paid plans export without it. Plan names and prices change, so check the current terms before release. The Rive free pricing guide on this site lists what each plan covers as of December 2026.

Will the mascot stay sharp on high-density screens?

Yes, because a Rive file stores vector geometry that scales without a separate resolution step. The real risk is artwork detail. Thin strokes and tiny features that look fine at 96 points can disappear at 40 points, so test small sizes and enlarge the features rather than the whole mascot.

Should the app set states from events or from a timer?

Set states from real events: a request starting, a request finishing, an error. Timers make the mascot act out of step with the screen. Keep idle as the default so the mascot never gets stuck in a one-shot state if an event is missed.

Sources

Related guides