html,body {
width: 100%;
height: 100%;
background:#FEE24F;
text-align: center;
}
.main {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
.headline {
width: 1.75rem;
height: .25rem;
padding: .03rem .1rem;
display: inline-block;
border-radius: .15rem;
margin: .99rem auto 0;
margin-top: .77rem;
position: relative;
text-align: center;
}
.headline span {
font-size: .11rem;
line-height: .2rem;
display: inline-block;
color: #fff;
}
.main .rule {
width: .53rem;
height: .52rem;
background: url("../img/rule1.png");
background-size: 100% 100%;
top: .65rem;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding-left: 0;
}
.center {
width: .27rem;
}
.banner {
display: block;
width: 3.4rem;
margin: .05rem auto;
}
.banner .turnplate {
display: block;
width: 3.3rem;
height: 3.3rem;
position: relative;
margin: auto;
}
.deng {
width: 3.1rem;
height: 3.1rem;
position: absolute;
top: .13rem;
left: 50%;
transform: translate(-50%,0);
}
.one {
display: none;
}
.two {
display: block;
}
.rule1 {
width: .53rem;
height: .53rem;
position: absolute;
top: 0;
right: 0;
background-image: url(../img/rule1.png);
background-size: 100% 100%;
}
.pointer {
position: absolute;
width: .9rem;
height: 1.05rem;
top: 1.1rem;
left: 50%;
margin-left: -.45rem;
transform: scale(1,1);
}
canvas,#wheelcanvas {
width: 3.16rem;
height: 3.16rem;
position: absolute;
top: 50%;
left: 50%;
margin-left: -1.58rem;
margin-top: -1.55rem;
}
.progressBar {
width: 3.17rem;
height: .8rem;
background: #FFF4C6;
border-radius: .25rem;
padding: .03rem 0 .2rem;
margin: .05rem auto;
text-align: center;
font-size: .12rem;
font-weight: bolder;
color: #FF6100;
}
.progress {
width: 100%;
height: .8rem;
padding: 0 .29rem 0 .32rem;
border-radius: .2rem;
margin-top: .18rem;
display: flex;
justify-content: space-around;
align-items: center;
}
.mask {
z-index: 11;
}
.progress li {
width: 25%;
text-align: right;
position: relative;
}
li:first-child::before {
content: "抽奖次数";
font-size: .12rem;
position: absolute;
left: -.1rem;
bottom: .02rem;
color: #fff;
}
li img {
display: inline-block;
width: .33rem;
margin-left: .43rem;
}
.active {
display: none;
}
.line {
margin-top: .06rem;
width: 100%;
height: .03rem;
position: relative;
padding-bottom: .03rem;
position: relative;
background: #FEE24F;
border-radius: .01rem;
}
.last {
position: absolute;
right: 0;
top: -.02rem;
width: .07rem;
height: .07rem;
background: #FEE24F;
border-radius: 100%;
}
.active_item {
width: 0;
height: 0;
position: absolute;
top: 0;
left: 0;
border-top: .03rem solid #fff;
}
li span {
display: inline-block;
margin-top: .05rem;
font-size: .12rem;
color: #fff;
}
.scale {
animation: scale 4s infinite;
transition: all 2s;
}
.toast {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 21;
display: none;
}
.toast>div {
position: absolute;
top: 45%;
left: 50%;
z-index: 21;
background-size: 100% 100%;
}
.mask1 {
width: 2.23rem;
height: 2.23rem;
background-image: url("../img/op.png");
animation: animation1 3s infinite;
margin-left: -1.165rem;
margin-top: -1.165rem;
}
.gift1 {
width: 1.59rem;
height: 1.59rem;
background-image: url("../img/bigGift.png");
margin-left: -.795rem;
margin-top: -.795rem;
}
.move {
transform-origin: center center;
animation: move .7s linear infinite;
}
@keyframes move {
0% {
transform: rotate(0deg)
}
25% {
transform: rotate(24deg)
}
50% {
transform: rotate(0deg)
}
75% {
transform: rotate(-24deg)
}
100% {
transform: rotate(0deg)
}
}
@keyframes animation1 {
0% {
opacity: 1;
transform: rotate(0);
}
50% {
opacity: .5;
transform: rotate(90deg);
}
100% {
opacity: 1;
transform: rotate(0deg);
}
}
@keyframes scale {
0% {
transform: scale(1,1);
}
50% {
transform: scale(.8,.8);
}
100% {
transform: scale(1,1);
}
}
.rule {
background: #DD1B0F;
color: #fff;
}
.rule_content {
background-image: url("../img/rule3.png");
}
.rule_content button {
background: #9D4FFF;
}