Reveal Card
A collectible card that turns over to show one of five prizes. Go all out with a charge, a spin and a burst, or keep it to one clean flip.
Get the file
Runtime
.rivReady to use in your app or website.
$4.99
Editable
.rev + .rivOpen it in the Rive editor and change anything. The .riv is included.
$9.99

Learn to build it
Full accessBuild this yourself, step by step. Every file in the library is included.
Courses from $119
Own a course? Sign in and every file is yours.
Use it in your own products and client work. Please don't resell or share the files themselves.
Using this file
The licence →Can I use it in a commercial product or a client project?
Yes. Use it in your own apps, websites and games, and in work you do for clients, paid or not. Change it as much as you like. Read the full licence
Can I resell or share the file?
No. Please don't resell, redistribute or re-upload the files, as they are or changed, and don't bundle them into templates, asset packs or UI kits, free or paid. If someone wants one, share a link to this page instead. Read the full licence
Do I need to credit you?
No, credit isn't required. A mention or a link back is always appreciated, though. Read the full licence
What's the difference between the .riv and the .rev?
The .riv is the runtime file: it goes into your app or website and plays there. The .rev is the editable source: you open it in the Rive editor to change the design, the animation or the state machine, then export your own .riv. Read the full licence
I own a course. Do I get it?
Yes. If you own the Rive Masterclass or the Rive Scripting Course, every file in the library is yours, the .riv and the .rev. Sign in with the email you bought the course with and the downloads unlock. Read the full licence
Who owns the files?
The files stay © Tom Acco / Rive Masterclass. When you download or buy one, you get a licence to use it, not ownership of it. Read the full licence
Use it on your site
import { useRive } from '@rive-app/react-canvas';
export function RevealCard() {
const { rive, RiveComponent } = useRive({
src: '/reveal-card.riv',
artboard: 'Reveal Card',
stateMachines: 'State Machine 1',
autoplay: true,
autoBind: true,
});
// every input on this page is a view model property
const vm = rive?.viewModelInstance;
if (vm) vm.color('nameColor').value = 0xFFFFFFFF;
return <RiveComponent style={{ width: '100%', height: 400 }} />;
}Inputs: flip, result, random, epic, rays, name1, name2, name3, name4, name5, nameColor, frameColor, backColor, windowColor. All on the RevealCard view model.
How it's built
Tap the card or fire flip. With epic on, it hums and shakes as it charges, launches, spins two and a half times, freezes for a beat at its biggest and lands with a flash, two shockwaves and a burst of confetti, then floats with soft rays behind it. Turn epic off for a calm reveal: a small lift, one clean turn and a shine. Tap again and it turns back face down. Every reveal draws one of five cards at random (never the same one twice in a row), or the one you set in result (0 to 4) when random is off. Each card is a picture and a name: give the cards your own names here, and swap the five pictures for your own images in the file. The card has real thickness as it turns. revealed fires when the card lands face up. Set the frame, back, window and name colours, and turn the rays off if you want it quieter.
- 1Thickness from three layersThe card turns with Scale X alone. The face slides a few pixels one way, a dark copy of the card with no details slides the other way, and an edge grows between them, so the card has real thickness when it is side on.
- 2Charge, peak, releaseThe epic reveal is built like a game reveal: a build-up that shakes harder and harder, a fast spin that slows into a slap, a short freeze at the biggest pose, then the flash, the shockwaves and the burst.
- 3Five cards, one turnEach card is a picture and a name on the front. A state machine layer reads result and shows that card's picture and name, so the turn animations are the same for every card.
- 4No stop at the seamThe idle float starts during the landing, already moving, so the card glides from the reveal into its loop with no pause.



