song.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. @keyframes circle{
  2. 0%{
  3. transform: rotate(0deg);
  4. }
  5. 100%{
  6. transform: rotate(360deg);
  7. }
  8. }
  9. .page{
  10. display: flex;
  11. flex-direction: column;
  12. height: 100vh;
  13. position: relative;
  14. }
  15. .page::before{
  16. content: '';
  17. position: absolute;
  18. top: 0px;
  19. left: 0px;
  20. width: 100%;
  21. height: 100vh;
  22. z-index: -1;
  23. /*background:transparent url(//i.loli.net/2017/10/08/59da11c6739ab.jpg)no-repeat center;
  24. background-size: cover;*/
  25. filter: blur(10px) brightness(.4);
  26. }
  27. .page::after{
  28. content: "";
  29. display: block;
  30. position: absolute;
  31. top: 0;
  32. left: 0;
  33. right: 0;
  34. bottom: 0;
  35. z-index: -1;
  36. background-color: hsla(0,100%,0%,0.5);
  37. }
  38. section.pointer{
  39. position: relative;
  40. }
  41. section.pointer .logo{
  42. position: absolute;
  43. top: 12px;
  44. left: 10px;
  45. display: block;
  46. width: 100px;
  47. height: 17px;
  48. }
  49. section.pointer .point{
  50. width: 84px;
  51. height: 122px;
  52. position: absolute;
  53. left: 45%;
  54. z-index: 2;
  55. transform-origin: 10% 0%;
  56. transition: 1s;
  57. }
  58. section.pointer .point.rotate{
  59. transform: rotate(-15deg);
  60. transform-origin: 10% 0%;
  61. transition: transform 1s;
  62. }
  63. section.disk{
  64. position: relative;
  65. margin-top: 63px;
  66. }
  67. section.disk .circle{
  68. width: 248px;
  69. height: 248px;
  70. margin: 0 auto;
  71. position: relative;
  72. /*display: flex;
  73. justify-content: center;
  74. align-items: center;*/
  75. }
  76. .icon-wrapper{
  77. position:absolute;
  78. top: 50%;
  79. left: 50%;
  80. transform: translate(-50%,-50%);
  81. z-index: 2;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. border: 1px solid #fff;
  86. border-radius: 50%;
  87. padding: 7px;
  88. }
  89. .icon-wrapper .iconfont{
  90. width: 25px;
  91. height: 25px;
  92. vertical-align: -0.15em;
  93. overflow: hidden;
  94. fill: #fff;
  95. }
  96. section.disk .icon-pause{ display: none; }
  97. section.disk.playing .icon-bofang{display: none;}
  98. section.disk.playing .icon-pause{display: block;}
  99. section.disk .circle::before{
  100. content: '';
  101. position: absolute;
  102. top: 0;
  103. left: 0;
  104. width: 100%;
  105. height: 100%;
  106. background: transparent url(https://i.loli.net/2018/01/18/5a6068986f993.png) no-repeat center;
  107. background-size: cover;
  108. }
  109. section.disk .circle::after{
  110. content: '';
  111. position: absolute;
  112. top: 0;
  113. left: 0;
  114. width: 100%;
  115. height: 100%;
  116. background: transparent url(https://i.loli.net/2018/01/18/5a606898095c6.png) no-repeat center;
  117. background-size: cover;
  118. }
  119. section.disk .circle > img{
  120. width: 150px;
  121. height: 150px;
  122. position: absolute;
  123. top: 50%;
  124. left: 50%;
  125. margin-top: -75px;
  126. margin-left: -75px;
  127. border-radius: 50%;
  128. display: block;
  129. }
  130. section.disk.playing .circle::after,
  131. section.disk.playing .circle > img{
  132. animation: circle 20s infinite linear;
  133. }
  134. /*随时随地停止*/
  135. section.disk.pause .circle::after,
  136. section.disk.pause .circle > img{
  137. animation: circle 20s infinite linear;
  138. animation-play-state: paused;
  139. }
  140. /*歌词*/
  141. section.lyric{
  142. /*占据中间*/
  143. flex-grow: 1;
  144. margin-top: 20px;
  145. padding: 0 35px;
  146. line-height: 2;
  147. text-align: center;
  148. color: #fefefe;
  149. }
  150. section.lyric h1{
  151. font-size: 15px;
  152. overflow: hidden;
  153. white-space: nowrap;
  154. text-overflow: ellipsis
  155. }
  156. section.lyric .word{
  157. margin-top: 7px;
  158. height: 72px;
  159. overflow: hidden;
  160. }
  161. section.lyric .word p{
  162. font-size: 13px;
  163. line-height: 24px;
  164. color: hsla(0,0%,100%,.6);
  165. }
  166. section.lyric .word .lines{
  167. transition: transform .3s;
  168. }
  169. section.lyric .lines p.active{
  170. color: #fefefe;
  171. font-size: 15px;
  172. }
  173. /*链接*/
  174. section.links{
  175. display: flex;
  176. justify-content: center;
  177. align-items: center;
  178. }
  179. section.links a{
  180. /*display: inline-block;*/
  181. width: 145px;
  182. height: 40px;
  183. line-height: 40px;
  184. padding: 0 6px;
  185. margin: 10px;
  186. border: 1px solid #d33a31;
  187. border-radius: 40px;
  188. font-size: 18px;
  189. color: #d33a31;
  190. text-align: center;
  191. background: transparent;
  192. letter-spacing: 5px;
  193. }
  194. section.links a.main{
  195. background: #d33a31;
  196. color: #fff;
  197. }
  198. .boomText{
  199. opacity: 0;
  200. display: inline-block;
  201. }