index.module.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .fingeringContainer{
  2. position: absolute;
  3. left: 0;
  4. bottom: 0;
  5. width: 100%;
  6. height: 100%;
  7. display: flex;
  8. justify-content: space-evenly;
  9. align-items: center;
  10. padding: 0 10px;
  11. }
  12. .imgs{
  13. position: relative;
  14. width: 84%;
  15. height: 100%;
  16. & > img {
  17. position: absolute;
  18. left: 50%;
  19. top: 50%;
  20. transform: translate(-50%, -50%);
  21. display: block;
  22. max-width: 100%;
  23. max-height: 100%;
  24. }
  25. }
  26. .yidiao{
  27. width: 30px;
  28. color: var(--van-primary-color);
  29. font-size: 12Px;
  30. text-align: center;
  31. opacity: 0;
  32. }
  33. .tizhi{
  34. width: 30px;
  35. height: 30px;
  36. text-align: center;
  37. line-height: 30px;
  38. border-radius: 100%;
  39. background-color: var(--van-primary-color);
  40. color: #fff;
  41. box-shadow: 0 0 10px rgba(0, 0, 0, .05);
  42. font-size: 12Px;
  43. opacity: 0;
  44. pointer-events: none;
  45. &:active{
  46. opacity: .8;
  47. }
  48. }
  49. .canDisplay{
  50. opacity: 1;
  51. pointer-events: initial;
  52. }
  53. @keyframes activeopacity {
  54. 0% {transforopacitym: 0;}
  55. 100% {opacity: 1;}
  56. }
  57. @keyframes leftrotates {
  58. 0% {transform: rotate(0deg);}
  59. 50% {transform: rotate(-10deg);}
  60. 100% {transform: rotate(-10deg);}
  61. }
  62. @keyframes rightrotates {
  63. 0% {transform: rotate(0deg);}
  64. 50% {transform: rotate(5deg);}
  65. 100% {transform: rotate(5deg);}
  66. }
  67. :global{
  68. .small-drum{
  69. // transform: ;
  70. img[data-index="active"] :local {
  71. animation: activeopacity .2s;
  72. animation-delay: .3s;
  73. transform-origin: 0px 0px;
  74. }
  75. img[data-index="left"] :local {
  76. // transform: rotate(-10deg);
  77. animation: leftrotates .5s;
  78. transform-origin: 0px 0px;
  79. }
  80. img[data-index="right"] :local {
  81. // transform: rotate(5deg);
  82. animation: rightrotates .5s;
  83. transform-origin: 0px 0px;
  84. }
  85. }
  86. }
  87. :global{
  88. .piccolo{
  89. margin-top: 0;
  90. // padding: 0 10px;
  91. // padding-right: 40px;
  92. >.piccolo{
  93. // padding: 0!important;
  94. }
  95. }
  96. }