Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I draw something like Wheel of Fortune using CSS?

I wish to draw a Wheel of Fortune using just CSS and jQuery. I don't want to use any images.

Also, I want to have at least 8 segments in the circle and properly align each text word vertically in each segment. Here's a photo to illustrate:

enter image description here

Once I have this working I then can use CSS3 rotate property.

Any idea how could I do this?

like image 933
Jigar Jain Avatar asked Jun 21 '12 04:06

Jigar Jain


3 Answers

Here's a Spinning Wheel Demo done in HTML5 using Canvas: LINK enter image description here

Direct download to the project demo files : ZIP


EDIT: Here is a different tutorial demo:
Creating a roulette wheel using html5 canvas

like image 99
arttronics Avatar answered Sep 19 '22 18:09

arttronics


Here is another example of a spinning wheel using a Canvas

Spinning JavaScript wheel

like image 44
bramp Avatar answered Sep 21 '22 18:09

bramp


Check this link -> http://joelb.me/blog/2011/css-mask-tutorial-rotating-image-gallery/

It contains an introductory tutorial to somewhat you need. Check for the JS 2d Transformation library code at github too.

like image 44
swapnesh Avatar answered Sep 17 '22 18:09

swapnesh