Answer the question
In order to leave comments, you need to log in
How to implement a lottery?
Task:
There is a list of 100 people
. There are 2 buttons. By pressing the first button, it starts, the second one stops
Start:
Infinite scrolling begins: elements go up off the screen, and are added down (in fact, an endless scroll)
Stop:
Smoothly (ideally) this lottery drum stops and the selected person will be in the center. It should also have a handler later on.
This can be done using css keyframes, but how to implement stopping the animation on request in the right place and get the selected person?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question