Relic Chest
GamesData BindingFreeGet the file
Runtime
.rivReady to use in your app or website.
Free
Editable
.revOpen it in the Rive editor and change anything.
$4.99

Learn to build it
Full accessBuild this yourself, step by step. Every .rev in the library is included.
Courses from $119
Own a course? Sign in and every .rev is yours.
Use it on your site
import { useRive } from '@rive-app/react-canvas';
export function Chest() {
const { rive, RiveComponent } = useRive({
src: '/treasure-chest-relic.riv',
artboard: 'Chest',
stateMachines: 'State Machine',
autoplay: true,
autoBind: true,
});
// every input on this page is a view model property
const vm = rive?.viewModelInstance;
if (vm) vm.trigger('toggle').trigger();
return <RiveComponent style={{ width: '100%', height: 400 }} />;
}Inputs: toggle, woodColor, metalColor, mossColor, coinColor, gemColor, glowColor. All on the Chest view model.
How it's built
An ancient treasure chest with moss, a hanging vine and cracked boards. Tap to open, tap again to close. Four material sets, and wood, metal, moss, coins, gem and glow all come from data binding.
- 1Every part is its own artboardThe closed chest, the open chest, the rays, the glow and the sparkles are components, so you can redraw one without touching the animation.
- 2One trigger opens and closes itToggle flips the chest between closed and open. Fire it from a tap or from your own code.
- 3One colour per materialChange the wood colour and its whole shading follows, shadows and highlights included. A small script keeps them in key.
- 4Sound is part of the fileThe open and close sounds are audio events on the timeline, so they stay in sync wherever the file plays.