jquery实现现场大屏随机抽奖效果代码

代码语言:html

所属分类:其他

代码描述:jquery实现现场大屏随机抽奖效果代码,可设置中奖人数

代码标签: 大屏 随机 抽奖 效果

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

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        * {
        margin: 0;
        padding: 0;
        font-family: "微软雅黑", "黑体", arial;
    }
    
    html {
        height: 100%;
        font-size: 12px;
    }
    
    :focus {
        outline: none;
        border: none;
    }
    
    button {
        color: white;
    }
    
    .hide {
        display: none;
    }
    
    html {
        height: 100%;
    }
    
    .Dialog,
    .Confirm {
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        position: fixed;
        z-index: 100;
        display: table;
        text-align: center;
        width: 100%;
        font-size: 1.5rem;
        margin: 0;
        padding: 0;
        left: 0;
        top: 0;
    }
    
    .Dialog > div,
    .Confirm > div {
        display: table-cell;
        text-align: center;
        vertical-align: middle;
        width: 50%;
    }
    
    .Dialog > div > div,
    .Confirm > div > div {
        background: #fff;
        padding: 2rem;
        width: 50rem;
        margin: 0 auto;
        color: #023e73;
        border-radius: 1rem;
        box-sizing: border-box;
    }
    
    .Dialog > div > div button,
    .Confirm > div > div button {
        display: inline-block;
        margin: 2rem 1rem 0 1rem;
        background: #FFC21C;
        padding: 1rem 5rem;
        font-size: 1.2rem;
        color: #fff;
        border: none;
        border-radius: 0.5rem;
    }
    
    #bgLuckyDrawEnd {
        position: absolute;
        z-index: -10;
    }
    
    #bgLuckyDrawEnd.bg {
        background: url(//repo.bfw.wiki/bfwrepo/images/huodong/choujiang/bgLight.png) no-repeat center center;
        -webkit-animation: lightAnimation 5s infinite linear;
        -moz-animation: lightAnimation 5s infinite linear;
        -o-animation: lightAnimation 5s infinite linear;
        animation: lightAnimation 5s infinite linear;
    }
    
    #iconDiv {
        position: absolute;
        left: 50%;
        width: 800px;
        margin-left: -400px;
        z-index: -100;
    }
    
    #iconDiv > span {
        position: absolute;
    }
    
    #iconDiv > span:nth-child(1) {
        left: 126px;
        top: 169px;
    }
    
    #iconDiv > span:nth-child(2) {
        left: 210px;
        top: 103px;
    }
    
    #iconDiv > span:nth-child(3) {
        left: 292px;
        top: 25px;
    }
    
    #iconDiv > span:nth-child(4) {
        left: 432px;
        top: 54px;
    }
    
    #iconDiv > span:nth-child(5) {
        left: 545px;
        top: 107px;
    }
    
    #iconDiv > span:nth-child(6) {
        left: 561px;
        top: 163px;
    }
    
    @keyframes lightAnimation {
        0% {
            -webkit-transform: rotate(0deg);
        }
        50% {
            -webkit-transform: rotate(180deg);
        }
        100% {
            -webkit-transform: rotate(360deg);
        }
    }
    
    @-webkit-keyframes lightAnimation {
        0% {
            -webkit-transform: rotate(0deg);
        }
        50% {
            -webkit-transform: rotate(180deg);
        }
        100% {
            -webkit-transform: rotate(360deg);
        }
    }
    
    body {
        background: #.........完整代码请登录后点击上方下载按钮下载查看

网友评论0