PHP implements the WeChat carousel lottery . I found that many carousel draws have implemented the front-end part. Most of them use HTML5 technology. However, it is inconvenient to adjust the lottery odds in the backend. I simply collected the data myself. On the basis of a carousel lottery, I added Part of the PHP code can customize the lottery probability. Please refer to the data.php file for settings. Comments are given on the relevant parts.
Regarding the probability of winning, the preliminary setting is: the probability of winning: first prize: 1%, second prize: 2%, third prize: 5%, fourth prize: 7%, fifth prize: 10%, sixth prize: 25%, seventh prize: 50%.
Compatibility: Compatible with current mainstream browsers such as IE11+, Firefox, chrome, and Safari.