shortcut.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /* @import "/utils/common.wxss"; */
  2. /* 快捷导航 */
  3. .shortcut {
  4. position: fixed;
  5. right: 24rpx;
  6. bottom: 250rpx;
  7. width: 76rpx;
  8. line-height: 1;
  9. z-index: 5;
  10. border-radius: 50%;
  11. }
  12. /* 导航菜单元素 */
  13. .nav-item {
  14. position: absolute;
  15. bottom: 0;
  16. padding: 0;
  17. width: 76rpx;
  18. height: 76rpx;
  19. line-height: 76rpx;
  20. color: #fff;
  21. background: rgba(0, 0, 0, 0.4);
  22. border-radius: 50%;
  23. text-align: center;
  24. transform: rotate(0deg);
  25. opacity: 0;
  26. }
  27. .nav-item .iconfont {
  28. font-size: 40rpx;
  29. }
  30. /* 导航开关 */
  31. .nav-item__switch {
  32. opacity: 1;
  33. }
  34. .shortcut_click_show {
  35. margin-bottom: 0;
  36. background: #ff5454;
  37. }
  38. /* 显示动画 */
  39. .show_80 {
  40. bottom: 384rpx;
  41. animation: show_80 0.3s forwards;
  42. }
  43. .show_60 {
  44. bottom: 288rpx;
  45. animation: show_60 0.3s forwards;
  46. }
  47. .show_40 {
  48. bottom: 192rpx;
  49. animation: show_40 0.3s forwards;
  50. }
  51. .show_20 {
  52. bottom: 96rpx;
  53. animation: show_20 0.3s forwards;
  54. }
  55. @keyframes show_20 {
  56. from {
  57. bottom: 0;
  58. transform: rotate(0deg);
  59. opacity: 0;
  60. }
  61. to {
  62. bottom: 96rpx;
  63. transform: rotate(360deg);
  64. opacity: 1;
  65. }
  66. }
  67. @keyframes show_40 {
  68. from {
  69. bottom: 0;
  70. transform: rotate(0deg);
  71. opacity: 0;
  72. }
  73. to {
  74. bottom: 192rpx;
  75. transform: rotate(360deg);
  76. opacity: 1;
  77. }
  78. }
  79. @keyframes show_60 {
  80. from {
  81. bottom: 0;
  82. transform: rotate(0deg);
  83. opacity: 0;
  84. }
  85. to {
  86. bottom: 288rpx;
  87. transform: rotate(360deg);
  88. opacity: 1;
  89. }
  90. }
  91. @keyframes show_80 {
  92. from {
  93. bottom: 0;
  94. transform: rotate(0deg);
  95. opacity: 0;
  96. }
  97. to {
  98. bottom: 384rpx;
  99. transform: rotate(360deg);
  100. opacity: 1;
  101. }
  102. }
  103. /* 隐藏动画 */
  104. .hide_80 {
  105. bottom: 0;
  106. animation: hide_80 0.3s;
  107. opacity: 0;
  108. }
  109. .hide_60 {
  110. bottom: 0;
  111. animation: hide_60 0.3s;
  112. opacity: 0;
  113. }
  114. .hide_40 {
  115. bottom: 0;
  116. animation: hide_40 0.3s;
  117. opacity: 0;
  118. }
  119. .hide_20 {
  120. bottom: 0;
  121. animation: hide_20 0.3s;
  122. opacity: 0;
  123. }
  124. @keyframes hide_20 {
  125. from {
  126. bottom: 96rpx;
  127. transform: rotate(360deg);
  128. opacity: 1;
  129. }
  130. to {
  131. bottom: 0;
  132. transform: rotate(0deg);
  133. opacity: 0;
  134. }
  135. }
  136. @keyframes hide_40 {
  137. from {
  138. bottom: 192rpx;
  139. transform: rotate(360deg);
  140. opacity: 1;
  141. }
  142. to {
  143. bottom: 0;
  144. transform: rotate(0deg);
  145. opacity: 0;
  146. }
  147. }
  148. @keyframes hide_60 {
  149. from {
  150. bottom: 288rpx;
  151. transform: rotate(360deg);
  152. opacity: 1;
  153. }
  154. to {
  155. bottom: 0;
  156. transform: rotate(0deg);
  157. opacity: 0;
  158. }
  159. }
  160. @keyframes hide_80 {
  161. from {
  162. bottom: 384rpx;
  163. transform: rotate(360deg);
  164. opacity: 1;
  165. }
  166. to {
  167. bottom: 0;
  168. transform: rotate(0deg);
  169. opacity: 0;
  170. }
  171. }