Prize Wheel
A spin-to-win wheel with your own labels and slot icons. It winds up, spins for real and lands exactly where you tell it.
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 PrizeWheel() {
const { rive, RiveComponent } = useRive({
src: '/prize-wheel.riv',
artboard: 'Prize Wheel',
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('color1').value = 0xFFE4A109;
return <RiveComponent style={{ width: '100%', height: 400 }} />;
}Inputs: spin, result, random, color1, color2, color3, color4, rimColor, label1, label2, label3, label4, label5, label6, label7, label8, labelColor, icon1, icon2, icon3, icon4, icon5, icon6, icon7, icon8. All on the PrizeWheel view model.
How it's built
Tap the wheel or fire spin. It pulls back a little, throws, and slows down over four seconds like a real wheel, while the pointer gets flicked by every divider (fast at first, then one slow tick at a time). It lands in the middle of the segment you set in result (0 to 7, clockwise from the gold one at the top), or on a random one if random is on. Each segment can show a label, an icon from the Slot Machine set, or both: the icon sits near the rim, the label closer to the hub, and either one alone sits in the middle. Long labels shrink to fit. On the win the winning segment pops twice with its label, the icon gets an extra bounce and a few sparkles, the bulbs flash together and a burst of confetti comes off the top and is gone by the time it settles. landed fires when it stops, and result holds the winner. Set the four segment colours, the rim colour and the label colour.
- 1Two rotations, not oneThe disc sits in two nested groups. The outer one holds where the last spin ended, the inner one plays the spin. A spin only needs to know how many segments to travel, so 8 spin timelines cover all 64 start and end pairs.
- 2A real slowdown, bakedThe spin is a friction curve sampled into keys: a quick throw, then the speed falls off slowly so the last segments crawl past. A tiny rock forward and back at the end gives it weight.
- 3The pointer is pushed, not animatedEach divider pushes the pointer tip until it slips off, then a spring snaps it back. At full speed it buzzes, near the end you get single ticks, and it is still when the wheel stops in the middle of a segment.
- 4Light stays still, colour turnsThe shine and the rim shadow on the disc are white and black veils that do not spin, so the light stays put while the segments turn under it. Change a segment colour and its shading follows.
- 5Icons are the slot setEach icon is a small artboard from the Slot Machine, nested in every segment. A state per segment shows the one the icon setting picks, and a second state moves the icon and label apart when both are set.



