css实现立体彩色线框球转动动画效果代码
代码语言:html
所属分类:三维
代码描述:css实现立体彩色线框球转动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } body { min-height: 100vh; background: #000; display: flex; justify-content: center; align-items: center; overflow: hidden; } .scene { width: 100vmin; height: 100vmin; margin: 2% auto; perspective: 175vmin; -webkit-box-reflect: below -25vmin linear-gradient(to bottom, #0000 25%, #000); } .wrapper { width: 100%; aspect-ratio: 1; transform-style: preserve-3d; } .sphere { position: relative; width: 87.5%; height: 87.5%; margin: 0 auto; transform-style: preserve-3d; animation: rotate 7.5s infinite linear; } .sphere .ring { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 6px dashed; } .sphere .ring:nth-child(1) { color: #c4bebe; transform: rotateY(5.625deg); } .sphere .ring:nth-child(2) { color: #c795a2; transform: rotateY(11.25deg); } .sphere .ring:nth-child(3) { color: #57ed2f; transform: rotateY(16.875deg); } .sphere .ring:nth-child(4) { color: #061979; transform: rotateY(22.5deg); } .sphere .ring:nth-child(5) { color: #350fab; transform: rotateY(28.125deg); } .sphere .ring:nth-child(6) { color: #777402; transform: rotateY(33.75deg); } .sphere .ring:nth-child(7) { color: #b86e88; transform: rotateY(39.375deg); } .sphere .ring:nth-child(8) { color: #f595be; transform: rotateY(45deg); } .sphere .ring:nth-child(9) { color: #42fb08; transform: rotateY(50.625deg); } .sphere .ring:nth-child(10) { color: #2d962d; transform: rotateY(56.25deg); } .sphere .ring:nth-child(11) { color: #af5d66; transform: rotateY(61.875deg); } .sphere .ring:nth-child(12) { color: #abc0cc; transform: rotateY(67.5deg); } .sphere .ring:nth-child(13) { color: #6029be; transform: rotateY(73.125deg); } .sphere .ring:nth-child(14) { color: #dfd43b; transform: rotateY(78.75deg); } .sphere .ring:nth-child(15) { color: #9ea403; transform: rotateY(84.375deg); } .sphere .ring:nth-child(16) { color: #e969a1; transform: rotateY(90deg); } .sphere .ring:nth-child(17) { color: #6b7e05; transform: rotateY(95.625deg); } .sphere .ring:nth-child(18) { color: #f61f79; transform: rotateY(101.25deg); } .sphere .ring:nth-child(19) { color: #60e91a; transform: rotateY(106.875deg); } .sphere .ring:nth-child(20) { color: #427fe1; transform: rotateY(112.5deg); } .sphere .ring:nth-child(21) { color: #cded57; transform: rotateY(118.125deg); } .spher.........完整代码请登录后点击上方下载按钮下载查看
网友评论0