Slider.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .slider-container {
  2. position: relative;
  3. width: 578px;
  4. height: 120px;
  5. background-color: #787878;
  6. border-radius: 60px;
  7. overflow: hidden;
  8. touch-action: none;
  9. box-sizing: border-box;
  10. }
  11. .slider-item-bg {
  12. position: absolute;
  13. min-width: 120px;
  14. height: 120px;
  15. border-radius: 60px;
  16. left: 0;
  17. top: 0;
  18. background-color: #ffffff66;
  19. overflow: hidden;
  20. }
  21. .slider-item {
  22. position: absolute;
  23. left: 0;
  24. top: 0;
  25. min-width: 120px;
  26. height: 120px;
  27. border-radius: 60px;
  28. // width: 100%;
  29. // height: 100%;
  30. }
  31. .slider-top {
  32. position: absolute;
  33. width: 100%;
  34. background-color: #000;
  35. transform: height 0.2s;
  36. }
  37. .slider-bar {
  38. position: absolute;
  39. width: 100%;
  40. background-color: transparent;
  41. // background-color: #00ffff;
  42. bottom: 0;
  43. transition: height 0.2s;
  44. }
  45. .slider-handle {
  46. position: absolute;
  47. bottom: 0;
  48. width: 100%;
  49. text-align: center;
  50. color: #fff;
  51. }
  52. .slider-text-bg {
  53. display: flex;
  54. position: absolute;
  55. left: 0;
  56. top: 0;
  57. width: 120px;
  58. height: 120px;
  59. align-items: center;
  60. justify-content: center;
  61. }
  62. .slider-text {
  63. color: #000;
  64. font-size: 48px;
  65. font-weight: bold;
  66. }
  67. .tooltip_bg {
  68. width: 578px;
  69. height: 200px;
  70. pointer-events: none;
  71. z-index: 1;
  72. position: absolute;
  73. left: 0;
  74. top: -210px;
  75. display: flex;
  76. flex-direction: column;
  77. }
  78. .tooltip_content{
  79. width: 578px;
  80. padding-left: 40px;
  81. padding-right: 40px;
  82. padding-top: 20px;
  83. padding-bottom: 20px;
  84. box-sizing: border-box;
  85. border-radius: 16px;
  86. background-color: #787878;
  87. display: flex;
  88. flex-direction: column;
  89. }
  90. .tooltip_title{
  91. font-size: 28px;
  92. line-height: 40px;
  93. color: #fff;
  94. font-weight: bold;
  95. }
  96. .tooltip_desc{
  97. font-size: 24px;
  98. line-height: 40px;
  99. color: #fff;
  100. opacity: 0.6;
  101. }
  102. .tooltip_arrow {
  103. width: 0;
  104. height: 0;
  105. margin-top: -2px;
  106. border-left: 25px solid transparent;
  107. border-right: 25px solid transparent;
  108. border-top: 20px solid #787878;
  109. }