P
P
Pavel Zinoviev2015-11-02 12:41:27
css
Pavel Zinoviev, 2015-11-02 12:41:27

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

1 answer(s)
C
Cat Anton, 2015-11-02
@zombiQWERTY

https://github.com/josex2r/jQuery-SlotMachine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question