css+div实现三维曲线球形转动loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css+div实现三维曲线球形转动loading加载动画效果代码
代码标签: css div 三维 曲线 球形 转动 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> *, *:before, *:after { padding: 0; margin: 0; border: 0; box-sizing: border-box; } body { background-color: #121418; display: grid; place-items: center; min-height: 100vh; color: #ccc; font-family: sans-serif; font-size: 18px; } .thing { width: 30vw; aspect-ratio: 1/1; position: relative; perspective: 2000px; transform-style: preserve-3d; transform: rotateY(0deg) rotateX(0deg); -webkit-animation: box 10s infinite linear; animation: box 10s infinite linear; } .ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border: 1vw solid #fff; border-radius: 50%; border-bottom-color: transparent; border-left-width: 0px; -webkit-animation: spin 1s infinite linear; animation: spin 1s infinite linear; } .ring--1 { --r: rotateY(0); transform: translate(-50%, -50%) rotateZ(0.........完整代码请登录后点击上方下载按钮下载查看
网友评论0