A simple, self-contained, and customizable spinning wheel built with vanilla HTML, CSS, and JavaScript. This interactive tool allows you to enter a list of names and spin a wheel to randomly select a winner. It's perfect for classroom activities, giveaways, or any situation where you need a fun, random selection.
- Dynamic Wheel Generation: The wheel is drawn dynamically using the HTML5 Canvas API based on the list of names provided.
- Customizable Entries: Easily add, edit, or remove names from the list in a simple text area.
- Real-time Updates: Click the "Update Wheel" button to instantly redraw the wheel with the new list of names.
- Smooth Spin Animation: A satisfying spin animation with realistic deceleration.
- Clear Winner Display: The selected winner is prominently displayed after the wheel stops.
- No Dependencies: Everything is contained in a single
wheelofnames.htmlfile. No libraries, frameworks, or internet connection required to run. - Modern UI: A clean and responsive design that works well on different screen sizes.
- Open the
wheelofnames.htmlfile in any modern web browser. - The wheel will load with a default list of names.
- In the "Student List" box on the right, edit the names. Make sure there is one name per line.
- Click the Update Wheel button to apply your changes.
- Click the Spin the Wheel! button to start the spin.
- Wait for the wheel to stop and reveal the winner!
wheelofnames.html: The single file containing all the HTML structure, CSS styling, and JavaScript logic for the spinning wheel application.