index.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. page {
  2. --color: 222, 228, 222;
  3. --shadowColor: 0px 0px 17px 2px rgba(var(--color), 0.6) inset;
  4. }
  5. .hexagon_container {
  6. position: absolute;
  7. animation: move 2s ease;
  8. animation-iteration-count: 1;
  9. animation-fill-mode: forwards;
  10. animation-delay: calc(var(--delay) * 1ms);
  11. opacity: 0;
  12. transition: all 1s ease-out;
  13. }
  14. .hexagon_container_selected {
  15. --shadowColor: 0px 0px 17px 2px rgba(50, 241, 76, 0.6) inset;
  16. position: absolute;
  17. animation: move 1s ease;
  18. animation-iteration-count: 1;
  19. animation-fill-mode: forwards;
  20. animation-delay: calc(var(--delay) * 1ms);
  21. opacity: 0;
  22. transition: all 1s ease-out;
  23. }
  24. /* .hexagon_container_active {
  25. --shadowColor: 0px 0px 17px 2px rgba(50, 241, 76, 0.6) inset;
  26. } */
  27. @keyframes move {
  28. 0% {
  29. transform: translate(0px, 0px) scale(0);
  30. opacity: 1;
  31. }
  32. 100% {
  33. transform: translate(var(--biasX), var(--biasY)) scale(1);
  34. opacity: 1;
  35. }
  36. }
  37. .hexagon_container,
  38. .container,
  39. .middle,
  40. .item,
  41. .item_partone,
  42. .item_parttwo {
  43. width: 50px;
  44. height: 40px;
  45. }
  46. .container,
  47. .middle,
  48. .item {
  49. overflow: hidden;
  50. }
  51. .middle {
  52. transform: rotate(-60deg);
  53. }
  54. .item,
  55. .item_partone,
  56. .item_parttwo {
  57. box-shadow: var(--shadowColor);
  58. border: var(--borderColor);
  59. }
  60. .item {
  61. position: relative;
  62. background: no-repeat 50% center;
  63. background-size: 125% auto;
  64. transform: rotate(-60deg);
  65. }
  66. .item_partone {
  67. position: absolute;
  68. left: 0;
  69. top: 0;
  70. transform: rotateZ(-60deg);
  71. }
  72. .item_parttwo {
  73. position: absolute;
  74. left: 0;
  75. top: 0;
  76. transform: rotateZ(-120deg);
  77. }
  78. .rect_text {
  79. display: flex;
  80. flex-direction: column;
  81. position: absolute;
  82. left: 50%;
  83. top: 50%;
  84. transform: translate(-50%, -50%);
  85. color: rgb(43, 216, 247);
  86. font-size: 50%;
  87. overflow: hidden;
  88. white-space: nowrap;
  89. text-overflow: "";
  90. }