You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rotation3D.css 5.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. 椭圆会使内部失真 transform: rotateX(50deg);
  3. */
  4. .rotation3D{
  5. position: relative; width: 800px; height: 600px; user-select: none;
  6. margin: 0 auto;
  7. /* border: 1px solid white; border-radius: 100%; */
  8. /* cursor: move; */
  9. }
  10. .rotation3D .center{
  11. display: none;
  12. position: absolute; left: 50%; top: 50%;
  13. transform: translate(-50%, -50%);
  14. }
  15. .rotation3D .itemList{ position: absolute; width: 100%; height: 100%; z-index: 20; }
  16. .rotation3D .lineList{
  17. position: absolute; width: 100%; height: 100%; z-index: 10;
  18. transform-style: preserve-3d;
  19. }
  20. /*---------------------------点样式---------------------------*/
  21. .rotation3D__item{
  22. position: absolute; display: block; width: 161px; height: 188px;
  23. text-align: center; line-height: 30px; font-size: 16px; color: white;
  24. /*background: #2292ef; border-radius: 4px;*/
  25. /*cursor: pointer; */
  26. }
  27. .rotation3D__item .scale{ position: absolute; top: 0; width: 100%; height: 100%; }
  28. .rotation3D__item .cont{ position: relative; z-index: 2; }
  29. .rotation3D__item .cont .iconfont { font-size: 28px; margin-top: 30px; margin-bottom: 96px; display: block; }
  30. .rotation3D__item .cont p{ color: #101010; }
  31. .itemList .rotation3D__item .cont p::after{
  32. font-size: 12px;
  33. content: '';
  34. position: absolute;
  35. left: 0;
  36. right: 0;
  37. margin-top: 60px;
  38. color: #101010;
  39. }
  40. .itemList .rotation3D__item:nth-child(1) .cont p::after{
  41. content: "鹏城云脑一号";
  42. }
  43. .itemList .rotation3D__item:nth-child(2) .cont p::after{
  44. content: "鹏城云脑二号";
  45. }
  46. .itemList .rotation3D__item:nth-child(3) .cont p::after{
  47. content: "北大人工智能集群系统";
  48. }
  49. .itemList .rotation3D__item:nth-child(4) .cont p::after{
  50. content: "合肥类脑智能开放平台";
  51. }
  52. .itemList .rotation3D__item:nth-child(5) .cont p::after{
  53. content: "武汉人工智能计算中心";
  54. }
  55. .itemList .rotation3D__item:nth-child(6) .cont p::after{
  56. content: "西安未来人工智能计算中心";
  57. }
  58. .itemList .rotation3D__item:nth-child(7) .cont p::after{
  59. content: "更多接入中…";
  60. }
  61. .itemList .rotation3D__item:nth-child(8) .cont p::after{
  62. content: "中原人工智能计算中心";
  63. }
  64. .itemList .rotation3D__item:nth-child(9) .cont p::after{
  65. content: "成都人工智能计算中心";
  66. }
  67. .itemList .rotation3D__item:nth-child(10) .cont p::after{
  68. content: "横琴先进智能计算中心";
  69. }
  70. .itemList .rotation3D__item:nth-child(11) .cont p::after{
  71. content: "国家超级计算济南中心";
  72. }
  73. .rotation3D__item.blue{ color: #01e9fc; }
  74. .rotation3D__item.green{ color: #b4b3ca; }
  75. .rotation3D__item.yellow{ color: #ffd200; }
  76. /*底座*/
  77. .rotation3D__item .baseImg{ position: absolute; width: 100%; height: 100%; z-index: 1; }
  78. .rotation3D__item.blue .baseImg{ background: url("img/idc-red.png"); }
  79. .rotation3D__item.green .baseImg{ background: url("img/idc-green.png"); }
  80. .rotation3D__item.yellow .baseImg{ background: url("img/idc-yellow.png"); }
  81. /*---------------------------
  82. 线样式
  83. 线高为总高的一般
  84. ---------------------------*/
  85. .rotation3D__line{
  86. position: absolute; left: 50%; top: 50%;
  87. display: block; width: 1px; height: 50%;
  88. padding-top: 60px; color: #fff; font-size: 50px;
  89. /*background: #fff;*/
  90. /*原点设置在中间*/
  91. transform-origin: 50% 0;
  92. transform-style: preserve-3d;
  93. }
  94. .rotation3D__line .pos{ position: absolute; top: 0; }
  95. .rotation3D__line svg { position: absolute; top: 0; }
  96. .rotation3D__line svg path {
  97. stroke: #fff; fill: none;
  98. stroke-width: 2;
  99. animation: path-animation 100s linear 0s infinite normal;
  100. }
  101. @keyframes path-animation {
  102. 0% { stroke-dashoffset:500; }
  103. 100% { stroke-dashoffset:0; }
  104. }
  105. .rotation3D__line .dot {
  106. position: absolute; top: 0; left: 0; text-align: center;
  107. /*width: 35px; height: 35px; font-size: 35px; */
  108. width: 19px; height: 19px; font-size: 19px;
  109. }
  110. .rotation3D__line .dot1,.rotation3D__line .dot3,.rotation3D__line .dot4{
  111. animation: svg-path-animation 6s ease-in-out 0s infinite normal;
  112. }
  113. .rotation3D__line .dot1{
  114. offset-path: path("M0 400, 0 0"); offset-distance: 0%;
  115. }
  116. .rotation3D__line .dot2{
  117. offset-path: path("M0 200, 0 0"); offset-distance: 0%;
  118. background: #ffd200; border-radius: 100%;
  119. font-size: 22px; color: #000;
  120. }
  121. .rotation3D__line .dot3{
  122. offset-path: path("M20 400 S 0 200, 20 0"); offset-distance: 0%;
  123. }
  124. .rotation3D__line .dot4{
  125. position: relative;
  126. offset-path: path("M20 0 S 40 200, 20 400"); offset-distance: 0%;
  127. }
  128. @keyframes svg-path-animation {
  129. from {offset-distance: 100%;}
  130. to {offset-distance: 0%;}
  131. }
  132. .dot1 > span{
  133. position: absolute;
  134. font-size: 12px;
  135. color: #888;
  136. transform: rotate(180deg)scale(0.80);
  137. }
  138. /*颜色*/
  139. .rotation3D__line.blue { color: #07b2f9; }
  140. .rotation3D__line.green { color: #ac94ee; }
  141. .rotation3D__line.yellow { color: #ffd500; }
  142. .rotation3D__line.blue svg path { stroke: #07b2f9; }
  143. .rotation3D__line.green svg path { stroke: #ac94ee; }
  144. .rotation3D__line.yellow svg path { stroke: #ffd500; }