暫無描述

rotateCircle.css 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. html,body {
  2. width: 100%;
  3. height: 100%;
  4. background:#FEE24F;
  5. text-align: center;
  6. }
  7. .main {
  8. width: 100%;
  9. position: absolute;
  10. top: 0;
  11. left: 0;
  12. z-index: 0;
  13. }
  14. .headline {
  15. width: 1.75rem;
  16. height: .25rem;
  17. padding: .03rem .1rem;
  18. display: inline-block;
  19. border-radius: .15rem;
  20. margin: .99rem auto 0;
  21. margin-top: .77rem;
  22. position: relative;
  23. text-align: center;
  24. }
  25. .headline span {
  26. font-size: .11rem;
  27. line-height: .2rem;
  28. display: inline-block;
  29. color: #fff;
  30. }
  31. .main .rule {
  32. width: .53rem;
  33. height: .52rem;
  34. background: url("../img/rule1.png");
  35. background-size: 100% 100%;
  36. top: .65rem;
  37. border-top-left-radius: 0;
  38. border-bottom-left-radius: 0;
  39. padding-left: 0;
  40. }
  41. .center {
  42. width: .27rem;
  43. }
  44. .banner {
  45. display: block;
  46. width: 3.4rem;
  47. margin: .05rem auto;
  48. }
  49. .banner .turnplate {
  50. display: block;
  51. width: 3.3rem;
  52. height: 3.3rem;
  53. position: relative;
  54. margin: auto;
  55. }
  56. .deng {
  57. width: 3.1rem;
  58. height: 3.1rem;
  59. position: absolute;
  60. top: .13rem;
  61. left: 50%;
  62. transform: translate(-50%,0);
  63. }
  64. .one {
  65. display: none;
  66. }
  67. .two {
  68. display: block;
  69. }
  70. .rule1 {
  71. width: .53rem;
  72. height: .53rem;
  73. position: absolute;
  74. top: 0;
  75. right: 0;
  76. background-image: url(../img/rule1.png);
  77. background-size: 100% 100%;
  78. }
  79. .pointer {
  80. position: absolute;
  81. width: .9rem;
  82. height: 1.05rem;
  83. top: 1.1rem;
  84. left: 50%;
  85. margin-left: -.45rem;
  86. transform: scale(1,1);
  87. }
  88. canvas,#wheelcanvas {
  89. width: 3.16rem;
  90. height: 3.16rem;
  91. position: absolute;
  92. top: 50%;
  93. left: 50%;
  94. margin-left: -1.58rem;
  95. margin-top: -1.55rem;
  96. }
  97. .progressBar {
  98. width: 3.17rem;
  99. height: .8rem;
  100. background: #FFF4C6;
  101. border-radius: .25rem;
  102. padding: .03rem 0 .2rem;
  103. margin: .05rem auto;
  104. text-align: center;
  105. font-size: .12rem;
  106. font-weight: bolder;
  107. color: #FF6100;
  108. }
  109. .progress {
  110. width: 100%;
  111. height: .8rem;
  112. padding: 0 .29rem 0 .32rem;
  113. border-radius: .2rem;
  114. margin-top: .18rem;
  115. display: flex;
  116. justify-content: space-around;
  117. align-items: center;
  118. }
  119. .mask {
  120. z-index: 11;
  121. }
  122. .progress li {
  123. width: 25%;
  124. text-align: right;
  125. position: relative;
  126. }
  127. li:first-child::before {
  128. content: "抽奖次数";
  129. font-size: .12rem;
  130. position: absolute;
  131. left: -.1rem;
  132. bottom: .02rem;
  133. color: #fff;
  134. }
  135. li img {
  136. display: inline-block;
  137. width: .33rem;
  138. margin-left: .43rem;
  139. }
  140. .active {
  141. display: none;
  142. }
  143. .line {
  144. margin-top: .06rem;
  145. width: 100%;
  146. height: .03rem;
  147. position: relative;
  148. padding-bottom: .03rem;
  149. position: relative;
  150. background: #FEE24F;
  151. border-radius: .01rem;
  152. }
  153. .last {
  154. position: absolute;
  155. right: 0;
  156. top: -.02rem;
  157. width: .07rem;
  158. height: .07rem;
  159. background: #FEE24F;
  160. border-radius: 100%;
  161. }
  162. .active_item {
  163. width: 0;
  164. height: 0;
  165. position: absolute;
  166. top: 0;
  167. left: 0;
  168. border-top: .03rem solid #fff;
  169. }
  170. li span {
  171. display: inline-block;
  172. margin-top: .05rem;
  173. font-size: .12rem;
  174. color: #fff;
  175. }
  176. .scale {
  177. animation: scale 4s infinite;
  178. transition: all 2s;
  179. }
  180. .toast {
  181. width: 100%;
  182. height: 100%;
  183. position: absolute;
  184. top: 0;
  185. left: 0;
  186. z-index: 21;
  187. display: none;
  188. }
  189. .toast>div {
  190. position: absolute;
  191. top: 45%;
  192. left: 50%;
  193. z-index: 21;
  194. background-size: 100% 100%;
  195. }
  196. .mask1 {
  197. width: 2.23rem;
  198. height: 2.23rem;
  199. background-image: url("../img/op.png");
  200. animation: animation1 3s infinite;
  201. margin-left: -1.165rem;
  202. margin-top: -1.165rem;
  203. }
  204. .gift1 {
  205. width: 1.59rem;
  206. height: 1.59rem;
  207. background-image: url("../img/bigGift.png");
  208. margin-left: -.795rem;
  209. margin-top: -.795rem;
  210. }
  211. .move {
  212. transform-origin: center center;
  213. animation: move .7s linear infinite;
  214. }
  215. @keyframes move {
  216. 0% {
  217. transform: rotate(0deg)
  218. }
  219. 25% {
  220. transform: rotate(24deg)
  221. }
  222. 50% {
  223. transform: rotate(0deg)
  224. }
  225. 75% {
  226. transform: rotate(-24deg)
  227. }
  228. 100% {
  229. transform: rotate(0deg)
  230. }
  231. }
  232. @keyframes animation1 {
  233. 0% {
  234. opacity: 1;
  235. transform: rotate(0);
  236. }
  237. 50% {
  238. opacity: .5;
  239. transform: rotate(90deg);
  240. }
  241. 100% {
  242. opacity: 1;
  243. transform: rotate(0deg);
  244. }
  245. }
  246. @keyframes scale {
  247. 0% {
  248. transform: scale(1,1);
  249. }
  250. 50% {
  251. transform: scale(.8,.8);
  252. }
  253. 100% {
  254. transform: scale(1,1);
  255. }
  256. }
  257. .rule {
  258. background: #DD1B0F;
  259. color: #fff;
  260. }
  261. .rule_content {
  262. background-image: url("../img/rule3.png");
  263. }
  264. .rule_content button {
  265. background: #9D4FFF;
  266. }