Replacing Heavy AI Hero Videos With a Lightweight Interactive Rive Mascot
By the Charmotion team · Updated · How we write guides

Replace a heavy AI hero video with a rigged mascot by turning one character image into a .riv file with a state for each moment the video showed, then driving those states from the page. The file can be far smaller than an MP4 loop and reacts to hover, forms and errors. Keep a static fallback for slow loads.
Key takeaways
- A rigged mascot reacts to page state, while an AI video only replays its footage.
- One .riv file holds the artwork and every state, so one asset serves the whole hero.
- Map each video moment to a state, then drive those states from hover, forms and errors.
- Keep a static poster and reduced-motion handling so the hero never blocks the headline.
- Keep the video only where real footage carries the message.
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.
Why replace an AI hero video with a rigged mascot?
An AI hero video is a fixed clip. It plays the same motion whether the visitor is reading, scrolling or waiting for a result, and it has to download before the hero looks finished. A rigged mascot works differently. The character is one set of artwork with named states, so the hero can react to what the page is doing.
The swap is not always the right call. A cinematic scene, a product demo or footage of real people belongs in video. The swap fits best when the hero is a brand character or product mascot that needs to wave, react and blink, and when page weight, loading speed or editing time is the real problem.
- Weight. A video stores every frame. A .riv file stores the artwork once and the motion as data, so it can be far smaller than an MP4 loop. Measure your own hero in the browser's network panel before you decide.
- Reaction. A video can only play forward. A mascot can switch to happy when a save succeeds, to loading while a form submits and to sad when validation fails.
- Edits. Changing a video means re-rendering it. Changing a mascot state means editing one input or one property.
What does the swap involve, step by step?
The steps below show how to replace heavy AI hero video with lightweight interactive rigged mascot, from the first audit of the video to the fallback that ships with the page. A single hero can be finished in an afternoon once the artwork is ready.
- Audit the video. Write down every action it shows and when it plays. Mark the moments that carry meaning, such as a greeting, a reaction or a waiting beat, and ignore the frames that only fill time.
- Prepare one still. Use a finished, coloured character facing the viewer, with visible eyes and mouth, on a transparent background. If the AI video was built from a sketch or a photo-like render, start from the cleanest frame or redraw the character first.
- Build one .riv with a state for each moment. Start with idle, happy, wave and loading. Add more only when the page has a matching event.
- Expose the states to the page. Use a number input or a data-bound property that the page can write. Keep the names short and stable so code and designers agree.
- Embed the file after the headline. Put the headline and call to action in HTML first, then load the runtime and the .riv. Give the canvas a fixed size with a static poster in the same box.
- Wire events and test. Connect hover, form submit and errors to states, handle reduced motion, then test on a phone and on a slow connection. Remove the old video once the new hero passes.
Each step has a clear output: a list of moments, one still, one .riv, a set of named states, an embed, and a tested page.
Which video moments map to mascot states?
Most AI hero videos loop a few actions: an idle breath, a wave, a reaction and sometimes a thinking or loading beat. Write each one down, then give it a state. The mood numbers below follow the naming used in the code example later in this guide.
| Video moment | Mascot state | Page trigger |
|---|---|---|
| Calm loop | idle (0) | Default resting state |
| Greeting on first view | launch once, then idle; or wave (2) | Page load |
| Hover on a call to action | happy (1) | Pointer over or focus on the button |
| Waiting on a request | loading (5) | Request pending |
| Success message | happy (1) | Request succeeded |
| Error message | sad (4) | Validation or request failed |
| Chat input focused | listening (6) | Input focus |
| Reply being streamed | talking (7) | Stream active |
Keep the starting set small. Idle, happy, wave and loading cover most heroes. Add listening or talking only when the hero sits beside a chat or voice input. Looping states should return to the same pose they started from, so the seam does not show.
Should the hero be a .riv file, a Lottie or a video?
The three formats do different jobs, so choose by what the hero must do rather than by habit.
| Format | What it is | Strength in a hero | Check before you commit |
|---|---|---|---|
| Video (MP4, WebM) | Rendered frames | Any footage, photoreal scenes and sound | Every frame is stored, and there is no runtime state to drive |
| Rive (.riv) | Artwork, artboards, state machines and data binding in one file | Interactive states driven by page or app data | Needs a Rive runtime; free-plan exports show a splash screen |
| dotLottie (.lottie) | ZIP archive of Lottie animations, with optional themes and state machines | Vector motion with state machines and official players on web and mobile | Compare how far the state logic goes for your mascot |
A .riv file bundles the artboards, animations, state machines and data binding settings made in the Rive editor, and it loads directly into a website or app. The .rev format is for backups and editing, and runtimes cannot load it, so ship only the .riv. Rive's runtimes are open source and play any .riv file.
dotLottie is a good fit for simpler vector motion. LottieFiles says a dotLottie file can be up to 10 times smaller than the equivalent Lottie JSON. Its web player, @lottiefiles/dotlottie-web, is built on a Rust and WASM core and offers Software, WebGL2 and WebGPU rendering. LottieFiles lists version 0.30.0 or later as the minimum for dynamic theming and state machine features.
For a mascot whose mood comes from app data, Rive's data binding is the closer fit. The state logic is compared in Lottie vs Rive state machines, and speed and runtime size are covered in Rive vs Lottie performance.
How do you connect mascot states to the page?
Expose one number to the page and let the page write to it. Rive's editor can drive any property from live data through data binding, so the page only needs to set a value. The code below turns readable names into the mood numbers used by the state machine.
const MOODS = {
idle: 0,
happy: 1,
wave: 2,
thinking: 3,
sad: 4,
loading: 5,
listening: 6,
talking: 7,
sleeping: 8,
attention: 9
};
function setMood(name, write) {
// write is the callback that sets the data-bound property in your runtime
write(MOODS[name] ?? 0);
}Then connect the events:
- Hover or focus on the main call to action: happy.
- A form submit is pending: loading. On success: happy. On a validation error: sad.
- First paint: wave once and settle to idle. Use a launch state only when the file includes one.
- Return to idle after any one-shot moment, so the hero always has a resting pose.
Keep the page logic in one place, such as a single function that receives app state and sets the mood. That makes the hero easy to test and easy to change later. The state machine basics are in Rive state machine inputs and moods.
If the site runs on a no-code builder, the steps differ. See adding Rive and Lottie to Webflow or adding animation to WordPress.
How do you keep the hero fast and accessible?
A mascot is still page content. Four habits keep it from costing more than the video did.
- Load it after the headline. Put the headline, subhead and call to action in HTML first. Load the runtime and the .riv after first paint, and keep the canvas size fixed so the layout does not shift.
- Show a poster. Use a static PNG or SVG of the idle pose in the same box. Visitors on slow connections or with blocked scripts still see the character, and the page reads the same.
- Respect reduced motion. When a visitor has asked for less motion, hold a still idle pose or play one short moment instead of the loop. The rules are in accessible animation and reduced motion.
- Measure the hero. Check largest contentful paint, layout shift and interaction timing before and after the swap. Hero animation and Core Web Vitals explains what to look for.
Keep the mascot decorative unless it carries information. If it does, give its wrapper an accessible name and repeat the message in text beside it. Never put the headline only inside the animation.
Where does Charmotion fit?
Disclosure: Charmotion is our product. Charmotion turns one finished character image into a rigged Rive file. You pick the animations from ten: launch, happy, wave, loading, thinking, sad, listening, talking, sleeping and attention. Idle is included for free, and each animation costs 1 credit.
The output is one .riv file with a CharacterViewModelMachine that exposes a number property named mood, a CharacterStateMachine with a number input named mood, and a LaunchStateMachine when launch is picked. Mood numbers are fixed: idle 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9. Charmotion also includes paste-ready web, React and SwiftUI code, a README and a transparent poster per animation. Plans and credit amounts are on the pricing page.
Charmotion has no one-shot triggers such as success or error, so show success with happy and an error with sad, as the list above does. It does not do lip-sync from audio or 3D character rigs. For long cinematic work, keep the video. For a brand mascot that has to live in a hero, see website mascot animation.
How to replace heavy AI hero video with lightweight interactive rigged mascot
- Audit the video. List every action the AI video shows and when it plays, then mark the moments that carry meaning such as a greeting, a reaction or a waiting beat.
- Prepare one still. Use a finished, coloured character facing the viewer with visible eyes and mouth, on a transparent background, and start from the cleanest frame of the video.
- Build one .riv with a state for each moment. Create one Rive file with states for idle, happy, wave and loading first, and add more only where the page has a matching event.
- Expose the states to the page. Add a number input or a data-bound property that the page can write, with short stable names that code and designers both use.
- Embed the file after the headline. Load the headline and call to action in HTML first, then load the runtime and the .riv with a static poster in the same box and a fixed canvas size.
- Wire events, test and remove the video. Connect hover, form submit and errors to states, handle reduced motion, test on a phone and a slow connection, then remove the old video.
Frequently asked questions
Does the mascot still show if JavaScript is blocked?
No. A .riv hero needs its runtime to run, so place a static poster of the idle pose in the same box. Keep the headline and call to action in plain HTML so the page reads the same without the animation.
Will search engines index text in a mascot hero?
Text placed in HTML is indexed as usual. Keep the headline out of the animation canvas, and give the wrapper an accessible name when the mascot carries information. Decorative characters need no extra text.
Should I use dotLottie instead of Rive for a mascot?
dotLottie suits simple vector motion and can include state machines. Rive's data binding is the closer fit when the mood comes from app data and the states are more involved. Test both with your own mascot before deciding.
Sources
- Rive pricing, Rive
- Rive Editor, Rive
- What is a .riv file? Rive file format explained, ICS Media
- dotLottie, LottieFiles
- dotlottie-web, LottieFiles (GitHub)
- dotLottie interactivity, LottieFiles