If the H5 of the mobile phone realizes the effect of rolling lottery, it can control the probability of winning the lottery.

the raffle effect of Xiaomi Task Center is shown in the following figure:

Mar.27,2022

first of all, the effect and probability are separated.
scrolling requires animation. If transition or animation in css can achieve
probability, you can control it yourself. For example, a random number of 0-100, 0-1 is an award 1, 1 is an award, 10 is an award, and an award is 3

.
Menu