🎡 Wheel of Fate 🎡

Let the wheel predict your fate and future | GitHub

How to Use the Wheel of Fate Web Component

1. Load the Web Component

Include the JavaScript file in your HTML:

<script src="wheel-of-fate.js"></script>

2. Use the Web Component

Add the <wheel-of-fate> element to your HTML with optional attributes:

3. Interaction

Who owns your personal data

Friction: soft (6 seconds) | Triangle: red | Labels: circle

HTML Usage:

<wheel-of-fate labels="Meta,Alphabet,Microsoft,Apple,Palantir" colors="blue,red,green,grey,orange" friction="soft" triangle="red" labelorientation="circle"> </wheel-of-fate>

Your next project uses

Friction: hard (1 second) | Triangle: gold | Labels: right

HTML Usage:

<wheel-of-fate labels="Web Components,React,Svelte,jQuery,CSS only" colors="purple,cyan,orange,navy,magenta" friction="hard" triangle="gold" labelorientation="right"> </wheel-of-fate>

URL-Configured Wheel

Duration: 4500ms | Triangle: purple | Labels: right | URL: enabled

HTML Usage:

<wheel-of-fate labels="Default,Values,Here" colors="red,gold,green" duration="4500" triangle="purple" labelorientation="right" url="true"> </wheel-of-fate>

Try adding URL parameters like: labels=Win,Lose,Draw&colors=gold,silver,bronze