js实现点名摇号抽奖效果代码

代码语言:html

所属分类:大转盘

代码描述:js实现点名摇号抽奖效果代码

代码标签: 摇号 抽奖 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        html,
        body {
            width: 100%;
            height: 100%;
            overflow: hidden;
           background: linear-gradient(to bottom, #171717, #494e73, #4e7290, #262f46);
        }
            #man {
            width: 1000px;
            height: 1000px;
            list-style: none;
            border-radius: 50%;
            background: radial-gradient(#17aacf, #1de749, #bfff0e);
            position: absolute;
            top: -150px;
            left: -300px;
            box-shadow: 0px 0px 20px indigo;
        }
        
        #man li {
            position: absolute;
            width: 120px;
            height: 30px;
            top: 50%;
            left: 50%;
            font-size:16px;
            transform-origin: left top;
            text-align: center;
        }
        
        #btnYes {
            position: absolute;
            display: block;
            right: 25%;
            top: 340px;
            width: 70px;
            height: 30px;
            background-color: rgb(0, 255, 213);
            text-align: center;
            border: none;
            outline: none;
            border-radius: 20px;
            box-shadow: 2px 2px 5px black;
        }
        
        
        
        
        
        #img1 {
            position: absolute;
            width: 360px;
            height: 40px;
            top: 345px;
            left: 220px;
        }
        
        #img2 {
            position: absolute;
            width: 150px;
            height: 150px;
            left: 140px;
            margin-top: 18%;
            border-radius: 50%;
            animation: img3move 1s infinite linear;
            transform-origin: center center;
        }
        
        
        
        @keyframes img3move {
            0% {
                top: 50px;
                width: 150px;
            }
            25% {
                top: 70px;
                width: 170px;
            }
            50% {
                top: 90px;
                width: 190px;
                box-shadow: 0px 10px 10px black;
            }
            75% {
                top: 70px;
                width: 170px;
            }
            100% {
                top: 50px;
                width: 150px;
            }
        }
    </style>

</head>

<body>

    <ul id="man">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>

    <button id="btnYes">开始</button>

    <img id="img1" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADwCAMAAACNKKmnAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABgUExURQAAAMamqrFcKv+xMKlZXGgKDZlIRoYcGI8oKMsWEPypHvmeFv24PvKOGf7KYu+EHv6+R/3XdP7EUux5HfaYHfAWH/vRjvvupPSkM+J/I/7BIPCNM/aebOpMKOSiUehpUnqUydsAAAAadFJOUwBX9f8elL74Yfz////////////////////+vWNF5wAAFdVJREFUeNrtXYl227gObcw6TqiNklWJkhzP///lA0BSXOUlsU9nnokkbpq2c5I7F+DFQujXr2zZsmXLli1btmzZsmXLli1btmzZsmXLli1btmzZsmXLli1btmzZsmXLli1btmzZsmXLli1btmzZ/g/t7e13BuFWrN7fPzJaN9r7Ybfb7TNet9jvwwjWngGvDMY125/GYRjatu2m7I5XvRCgArjquu7EsttnuC554a42aIlynhnQK4OyZR9TfQKwxgGZxTif5+yN2yFrKk/DCdACuMqy5AiX3GW40mAt8gRYdWXdAly8KAqEC+iV4YrtsDTLaWgLXnDRDm3XE1zKGzM6ocpqmmUZukKUDFACdgkJcElZgDdmuIL4/tkcl6UVRT3UXckLCd7YciIXsIvvMlwuWF/N8bi0c4ECYqgFwCUArhLhKgAuluGKwOIIVot4Ab24BG9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dR/SZxbgT4a3OktcUvEhAZd2w1SUkvJins8Xd4f1hbrgGeE86uDFrsjLL88EQq8ILWZpaLlR+fGdBgAeU5rATFlUdRELCh26o0Bq0oCcR8fYAsBYtSpvjFAatSZ+Glln0sdjz0DArClmezuodP4xiFnOyHY3YHblhSCyjH1SVsVZTSrwvZv5tV4yYNQUyKzoN3WSHXjSvfE1qE52YWSlNat3Q60gHuWGZ6lfo0zASWtoLa0uuFgIBkmv3TRERxqw152mO6UR68o5C1xH9AF9EhyHFLO4r+PRpKFNTNEEi7eY7qQC/JonWFW36U30Preg0pDR6UkAdmyngVqWlg/JBwq23Ab66wKzCPw55FN2VzuJbsw6bbUOHWQau1ois.........完整代码请登录后点击上方下载按钮下载查看

网友评论0