waifu.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. #waifu {
  2. bottom: -1000px;
  3. right: 20px;
  4. line-height: 0;
  5. position: fixed;
  6. transform: translateY(3px);
  7. transition: transform .3s ease-in-out, bottom 3s ease-in-out;
  8. z-index: 1;
  9. }
  10. #waifu:hover {
  11. transform: translateY(0);
  12. }
  13. #waifu-tips {
  14. animation: shake 50s ease-in-out 5s infinite;
  15. background-color: rgba(236, 217, 188, .5);
  16. border: 1px solid rgba(224, 186, 140, .62);
  17. border-radius: 12px;
  18. box-shadow: 0 3px 15px 2px rgba(191, 158, 118, .2);
  19. font-size: 14px;
  20. line-height: 24px;
  21. margin: -30px 20px;
  22. min-height: 70px;
  23. opacity: 0;
  24. overflow: hidden;
  25. padding: 5px 10px;
  26. position: absolute;
  27. text-overflow: ellipsis;
  28. transition: opacity 1s;
  29. width: 250px;
  30. word-break: break-all;
  31. }
  32. #waifu-tips.waifu-tips-active {
  33. opacity: 1;
  34. transition: opacity .2s;
  35. }
  36. #waifu-tips span {
  37. color: #0099cc;
  38. }
  39. #waifu #live2d {
  40. cursor: grab;
  41. position: relative;
  42. }
  43. #waifu #live2d:active {
  44. cursor: grabbing;
  45. }
  46. #waifu-tool {
  47. color: #aaa;
  48. opacity: 0;
  49. position: absolute;
  50. right: -10px;
  51. top: 70px;
  52. transition: opacity 1s;
  53. }
  54. #waifu:hover #waifu-tool {
  55. opacity: 1;
  56. }
  57. #waifu-tool span {
  58. color: #5b6c7d;
  59. cursor: pointer;
  60. display: block;
  61. line-height: 30px;
  62. text-align: center;
  63. transition: color .3s;
  64. }
  65. #waifu-tool span:hover {
  66. color: #0684bd; /* #34495e */
  67. }
  68. @keyframes shake {
  69. 2% {
  70. transform: translate(.5px, -1.5px) rotate(-.5deg);
  71. }
  72. 4% {
  73. transform: translate(.5px, 1.5px) rotate(1.5deg);
  74. }
  75. 6% {
  76. transform: translate(1.5px, 1.5px) rotate(1.5deg);
  77. }
  78. 8% {
  79. transform: translate(2.5px, 1.5px) rotate(.5deg);
  80. }
  81. 10% {
  82. transform: translate(.5px, 2.5px) rotate(.5deg);
  83. }
  84. 12% {
  85. transform: translate(1.5px, 1.5px) rotate(.5deg);
  86. }
  87. 14% {
  88. transform: translate(.5px, .5px) rotate(.5deg);
  89. }
  90. 16% {
  91. transform: translate(-1.5px, -.5px) rotate(1.5deg);
  92. }
  93. 18% {
  94. transform: translate(.5px, .5px) rotate(1.5deg);
  95. }
  96. 20% {
  97. transform: translate(2.5px, 2.5px) rotate(1.5deg);
  98. }
  99. 22% {
  100. transform: translate(.5px, -1.5px) rotate(1.5deg);
  101. }
  102. 24% {
  103. transform: translate(-1.5px, 1.5px) rotate(-.5deg);
  104. }
  105. 26% {
  106. transform: translate(1.5px, .5px) rotate(1.5deg);
  107. }
  108. 28% {
  109. transform: translate(-.5px, -.5px) rotate(-.5deg);
  110. }
  111. 30% {
  112. transform: translate(1.5px, -.5px) rotate(-.5deg);
  113. }
  114. 32% {
  115. transform: translate(2.5px, -1.5px) rotate(1.5deg);
  116. }
  117. 34% {
  118. transform: translate(2.5px, 2.5px) rotate(-.5deg);
  119. }
  120. 36% {
  121. transform: translate(.5px, -1.5px) rotate(.5deg);
  122. }
  123. 38% {
  124. transform: translate(2.5px, -.5px) rotate(-.5deg);
  125. }
  126. 40% {
  127. transform: translate(-.5px, 2.5px) rotate(.5deg);
  128. }
  129. 42% {
  130. transform: translate(-1.5px, 2.5px) rotate(.5deg);
  131. }
  132. 44% {
  133. transform: translate(-1.5px, 1.5px) rotate(.5deg);
  134. }
  135. 46% {
  136. transform: translate(1.5px, -.5px) rotate(-.5deg);
  137. }
  138. 48% {
  139. transform: translate(2.5px, -.5px) rotate(.5deg);
  140. }
  141. 50% {
  142. transform: translate(-1.5px, 1.5px) rotate(.5deg);
  143. }
  144. 52% {
  145. transform: translate(-.5px, 1.5px) rotate(.5deg);
  146. }
  147. 54% {
  148. transform: translate(-1.5px, 1.5px) rotate(.5deg);
  149. }
  150. 56% {
  151. transform: translate(.5px, 2.5px) rotate(1.5deg);
  152. }
  153. 58% {
  154. transform: translate(2.5px, 2.5px) rotate(.5deg);
  155. }
  156. 60% {
  157. transform: translate(2.5px, -1.5px) rotate(1.5deg);
  158. }
  159. 62% {
  160. transform: translate(-1.5px, .5px) rotate(1.5deg);
  161. }
  162. 64% {
  163. transform: translate(-1.5px, 1.5px) rotate(1.5deg);
  164. }
  165. 66% {
  166. transform: translate(.5px, 2.5px) rotate(1.5deg);
  167. }
  168. 68% {
  169. transform: translate(2.5px, -1.5px) rotate(1.5deg);
  170. }
  171. 70% {
  172. transform: translate(2.5px, 2.5px) rotate(.5deg);
  173. }
  174. 72% {
  175. transform: translate(-.5px, -1.5px) rotate(1.5deg);
  176. }
  177. 74% {
  178. transform: translate(-1.5px, 2.5px) rotate(1.5deg);
  179. }
  180. 76% {
  181. transform: translate(-1.5px, 2.5px) rotate(1.5deg);
  182. }
  183. 78% {
  184. transform: translate(-1.5px, 2.5px) rotate(.5deg);
  185. }
  186. 80% {
  187. transform: translate(-1.5px, .5px) rotate(-.5deg);
  188. }
  189. 82% {
  190. transform: translate(-1.5px, .5px) rotate(-.5deg);
  191. }
  192. 84% {
  193. transform: translate(-.5px, .5px) rotate(1.5deg);
  194. }
  195. 86% {
  196. transform: translate(2.5px, 1.5px) rotate(.5deg);
  197. }
  198. 88% {
  199. transform: translate(-1.5px, .5px) rotate(1.5deg);
  200. }
  201. 90% {
  202. transform: translate(-1.5px, -.5px) rotate(-.5deg);
  203. }
  204. 92% {
  205. transform: translate(-1.5px, -1.5px) rotate(1.5deg);
  206. }
  207. 94% {
  208. transform: translate(.5px, .5px) rotate(-.5deg);
  209. }
  210. 96% {
  211. transform: translate(2.5px, -.5px) rotate(-.5deg);
  212. }
  213. 98% {
  214. transform: translate(-1.5px, -1.5px) rotate(-.5deg);
  215. }
  216. 0%, 100% {
  217. transform: translate(0, 0) rotate(0);
  218. }
  219. }