css实现一个圆中线条转动融合一体动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现一个圆中线条转动融合一体动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> *, *::before, *::after { padding: 0; margin: 0 auto; box-sizing: border-box; } body { background-color: #111; min-height: 100vh; display: grid; place-items: center; overflow: hidden; } .rings { position: relative; } .ring { font-size: 40px; width: var(--size); height: var(--size); position: absolute; border-radius: 50%; background-image: repeating-linear-gradient(#fff 0, #555 0.1em, #fff 0.2em); background-position: center; transform: translate(-50%, -50%); -webkit-animation: ringRotate var(--speed) ease-in-out infinite alternate, ringShadow var(--speed) ease-in-out infinite alternate; animation: ringRotate var(--speed) ease-in-out infinite alternate, ringShadow var(--speed) ease-in-out infinite alternate; --speed: 8s; } @-webkit-keyframes ringRotate { to { transform: translate(-50%, -50%) rotate(var(--toAngle)); } } @keyframes ringRotate { to { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0