How does vue realize the effect of lottery turntable?

is there a lottery plug-in suitable for vue? it seems to be in the jquery with big disc rotation, but I don"t really want to write jquery code in vue. I feel like I don"t want to write one myself, but I don"t have a train of thought.

Mar.19,2021

step 1: draw a circle.

step 2: divide the award areas, such as 0 60 first prize.

step 3: randomly generate an angle at 0,360 (when the award has been generated),

step 4: set the default fast rotation n laps, and after the end, the speed decreases and rotates to the generated angle position.

just provide an idea

Menu