纯css实现三维圆锥体旋转动画效果代码
代码语言:html
所属分类:三维
代码描述:纯css实现三维圆锥体旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; --ring: #3b3a4c; --speed: 8s; background: radial-gradient(#fff0 40%, #000c 100%), linear-gradient(315deg, #bdd4e7 0%, #8693ab 74%); } body:before { content: ""; position: absolute; width: 70vmin; height: 70vmin; animation: spin var(--speed) linear 0s infinite; border-radius: 100%; background: /* inner rings */ radial-gradient(circle at 50% 50%, #fff0 17.5vmin, var(--ring) calc(17.5vmin + 1px) 18.5vmin, #fff0 calc(18.5vmin + 1px) 100vmin), radial-gradient(circle at 51.5% 50%, #fff0 18.5vmin, var(--ring) calc(18.5vmin + 1px) 19.5vmin, #fff0 calc(19.5vmin + 1px) 100vmin), radial-gradient(circle at 53% 50%, #fff0 19.5vmin, var(--ring) calc(19.5vmin + 1px) 20.5vmin, #fff0 calc(20.5vmin + 1px) 100vmin), radial-gradient(circle at 54.5% 50%, #fff0 20.5vmin, var(--ring) calc(20.5vmin + 1px) 21.5vmin, #fff0 calc(21.5vmin + 1px) 100vmin), radial-gradient(circle at 56% 50%, #fff0 21.5vmin, var(--ring) calc(21.5vmin + 1px) 22.5vmin, #fff0 calc(22.5vmin + 1px) 100vmin), radial-gradient(circle at 57.5% 50%, #fff0 22.5vmin, var(--ring) calc(22.5vmin + 1px) 23.5vmin, #fff0 calc(23.5vmin + 1px) 100vmin), radial-gradient(circle at 59% 50%, #fff0 23.5vmin, var(--ring) calc(23.5vmin + 1px) 24.5vmin, #fff0 calc(24.5vmin + 1px) 100vmin), radial-gradient(circle at 60.5% 50%, #fff0 24.5vmin, var(--ring) calc(24.5vmin + 1px) 25.5vmin, #fff0 calc(.........完整代码请登录后点击上方下载按钮下载查看
网友评论0