Spin wheel image in HTML5 (e.g., roulette wheel)?

Crashalot picture Crashalot · Oct 5, 2011 · Viewed 77.1k times · Source

What's the best way to emulate a spinning roulette wheel in HTML5?

The wheel spinning should be controllable by some input (i.e., speed of spinning based on some user input). The wheel labels should blur as the wheel spins fast, but as the spinning slows, the labels on the wheel become more and more readable.

Are there HTML5 libraries that support this, or do the animations need to be programmed by hand?

This also needs to be supported on iOS devices.

Answer

katspaugh picture katspaugh · Oct 5, 2011

It can be done in a few lines of CSS.

Blurring is an optical effect, it doesn't need to be simulated.