Use the rotate attribute of css3 to rotate the angle Math.random(), set a setInterval to increase the angle of rotation, and turn off the timer after a certain period of time. At this time, the lottery is calculated based on the angle at which the picture stops.
http://skill-map.stuq.org/ Refer to this picture and you should add some js code to meet the needs.
Use the rotate attribute of css3 to rotate the angle Math.random(), set a setInterval to increase the angle of rotation, and turn off the timer after a certain period of time. At this time, the lottery is calculated based on the angle at which the picture stops.