You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

317 lines
6.3 KiB

  1. .wrapper {
  2. width: 100%;
  3. overflow: hidden;
  4. position: relative;
  5. top: 250px;
  6. }
  7. .open-body {
  8. width: 100%;
  9. overflow: hidden;
  10. }
  11. .open-body .bg {
  12. position: absolute;
  13. z-index: 1;
  14. background: url(https://d31zlh4on95l9h.cloudfront.net/images/5iujb001000d6m6ct5ghzpl21en4zi3e.png) 0px 0px no-repeat;
  15. background-size: 452px auto;
  16. width: 452px;
  17. height: 510px;
  18. max-height: 100%;
  19. left: 50%;
  20. margin-left: -226px;
  21. top: -25px;
  22. }
  23. .open-body .bg.rotate {
  24. -webkit-animation: rotate 10s infinite linear;
  25. }
  26. .open-has {
  27. position: relative;
  28. z-index: 2;
  29. height: 450px;
  30. width: 320px;
  31. margin: 0px auto;
  32. }
  33. .open-has .title-close {
  34. opacity: 1;
  35. -webkit-transition: all .5s;
  36. width: 100%;
  37. text-align: center;
  38. }
  39. .open-has .title-open {
  40. opacity: 0;
  41. -webkit-transition: all .5s;
  42. position: absolute;
  43. top: 0px;
  44. left: 0px;
  45. text-align: center;
  46. width: 100%;
  47. }
  48. .open-has h3 {
  49. color: #865500;
  50. font-size: 15px;
  51. text-align: center;
  52. padding-top: 75px;
  53. padding-bottom: 33px;
  54. }
  55. .open-has h3 .user {
  56. color: #ff5400;
  57. margin: 0px 5px;
  58. display: inline-block;
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. max-width: 100px;
  62. position: relative;
  63. white-space: nowrap;
  64. vertical-align: top;
  65. }
  66. .open-has .title-close .user {}
  67. .mod-chest .chest-close .tips {
  68. width: 166px;
  69. height: 60px;
  70. background: url(https://d31zlh4on95l9h.cloudfront.net/images/5iujb101000d6m6dcaam22o21olgw92l.png) 0px 0px no-repeat;
  71. background-size: 190px auto;
  72. position: absolute;
  73. left: 70px;
  74. top: 145px;
  75. -webkit-transition: all .5s;
  76. }
  77. .mod-chest .chest-close .tips .arrow {
  78. width: 26px;
  79. height: 60px;
  80. background: url(https://d31zlh4on95l9h.cloudfront.net/images/5iujb101000d6m6dcaam22o21olgw92l.png) right 0px no-repeat;
  81. background-size: 190px auto;
  82. position: absolute;
  83. display: block;
  84. top: 0px;
  85. right: -28px;
  86. -webkit-animation: move .7s linear infinite alternate;
  87. }
  88. .mod-chest .chest-close:after {
  89. width: 320px;
  90. height: 300px;
  91. position: absolute;
  92. top: -100px;
  93. left: -61px;
  94. content: "";
  95. display: block;
  96. }
  97. .mod-chest .chest-close:active {
  98. -webkit-transform: scale(1.05);
  99. -webkit-transition: all .3s;
  100. }
  101. .mod-chest .chest-close.shake .gift {
  102. -webkit-animation: shake 1.2s linear;
  103. -webkit-animation-fill-mode: forwards;
  104. }
  105. .mod-chest .chest-close.shake .tips {
  106. opacity: 0;
  107. }
  108. .mod-chest .chest-open {}
  109. .mod-chest .chest-open.blur:after {
  110. width: 320px;
  111. height: 68px;
  112. background: url(https://d31zlh4on95l9h.cloudfront.net/images/5iujau01000d6m6e13ri0qn23k3g8s09.png) no-repeat 0px 0px;
  113. background-size: 320px auto;
  114. position: relative;
  115. z-index: 1;
  116. position: absolute;
  117. left: 0px;
  118. top: -5px;
  119. content: "";
  120. display: block;
  121. }
  122. .open-has.opened .title-open {
  123. opacity: 1;
  124. }
  125. .open-has.opened .title-close {
  126. opacity: 0;
  127. }
  128. /*.open-has.opened .mod-chest{-webkit-transform:translate(0px,150px);}*/
  129. .open-has.opened .mod-chest .chest-open {
  130. -webkit-transform: translate(0px, 150px);
  131. }
  132. .open-has .mod-chest-cont {
  133. padding: 30px 0px 50px;
  134. text-align: center;
  135. overflow: hidden;
  136. opacity: 0;
  137. -webkit-transform: translate(0px, 30px);
  138. /*-webkit-transition:all .3s .3s;-webkit-transition:all .3s .3s cubic-bezier(.53,1.5,.69,1.81);*/
  139. z-index: 9;
  140. -webkit-animation-fill-mode: forwards;
  141. }
  142. .open-has .chest-open.show .mod-chest-cont {
  143. /*-webkit-transform:translate(0px,0px);opacity: 1;*/
  144. -webkit-animation: move2 .2s .0s linear;
  145. -webkit-animation-fill-mode: forwards;
  146. }
  147. .open-has .mod-chest-cont .gift {
  148. color: #ff6000;
  149. font-size: 24px;
  150. line-height: 30px;
  151. padding-bottom: 30px;
  152. }
  153. .open-has .mod-chest-cont .gift .icon {
  154. width: 58px;
  155. height: 0px;
  156. position: relative;
  157. display: inline-block;
  158. vertical-align: middle;
  159. }
  160. .open-has .mod-chest-cont .gift img {
  161. width: 160px;
  162. height: 160px;
  163. position: absolute;
  164. top: -62px;
  165. left: -48px;
  166. }
  167. .open-none {
  168. position: relative;
  169. z-index: 2;
  170. height: 450px;
  171. width: 320px;
  172. margin: 0px auto;
  173. }
  174. .open-none .mod-chest {
  175. height: 150px;
  176. }
  177. .open-none h3 {
  178. font-size: 15px;
  179. color: #865500;
  180. text-align: center;
  181. padding-top: 35px;
  182. padding-bottom: 40px;
  183. }
  184. .open-none .func {
  185. padding: 18px 35px 30px;
  186. }
  187. @-webkit-keyframes rotate {
  188. 0% {
  189. -webkit-transform: rotate(0deg);
  190. }
  191. 100% {
  192. -webkit-transform: rotate(360deg);
  193. }
  194. }
  195. @-webkit-keyframes move {
  196. 0% {
  197. -webkit-transform: translate(0px, 0px);
  198. }
  199. 100% {
  200. -webkit-transform: translate(0px, -5px);
  201. }
  202. }
  203. @-webkit-keyframes move2 {
  204. 0% {
  205. -webkit-transform: translate(0px, 30px);
  206. opacity: 0;
  207. }
  208. 70% {
  209. -webkit-transform: translate(0px, -20px);
  210. opacity: 1;
  211. }
  212. 100% {
  213. -webkit-transform: translate(0px, 0px);
  214. opacity: 1;
  215. }
  216. }
  217. @-webkit-keyframes shake {
  218. 0% {
  219. transform: scale(1);
  220. -webkit-transform: scale3d(1, 1, 1);
  221. }
  222. 6% {
  223. -webkit-transform: scale(.9) rotate(-8deg);
  224. -webkit-transform: scale3d(1, 1, 1) rotate(0, 0, 1, -8deg);
  225. }
  226. 18%,
  227. 30%,
  228. 42% {
  229. -webkit-transform: scale(1.1) rotate(8deg);
  230. -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 8deg);
  231. }
  232. 12%,
  233. 24%,
  234. 36%,
  235. 48% {
  236. -webkit-transform: scale(1.1) rotate(-8deg);
  237. -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -8deg);
  238. }
  239. 54% {
  240. -webkit-transform: scale(1);
  241. -webkit-transform: scale3d(1, 1, 1);
  242. }
  243. 60% {
  244. -webkit-transform: scale(1);
  245. -webkit-transform: scale3d(1, 1, 1);
  246. }
  247. 80% {
  248. -webkit-transform: scale(1) translate(0px, 150px);
  249. -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 150px, 0);
  250. }
  251. 90% {
  252. -webkit-transform: scale(1) translate(0px, 130px);
  253. -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 130px, 0);
  254. }
  255. 100% {
  256. -webkit-transform: scale(1) translate(0px, 150px);
  257. -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 150px, 0);
  258. }
  259. }
  260. .chest-notice {
  261. text-align: center;
  262. font-size: 12px;
  263. line-height: 20px;
  264. position: relative;
  265. color: #ff6000;
  266. padding-bottom: 10px;
  267. }
  268. .chest-notice input {
  269. position: relative;
  270. top: 3px;
  271. }