div+css彩色圆环相互穿越动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css彩色圆环相互穿越动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: #000; } .scene { min-height: 100vh; perspective: 20rem; display: flex; justify-content: center; align-items: center; } .scene * { position: absolute; transform-style: preserve-3d; } .container { animation: rotate 80s linear infinite; display: flex; justify-content: center; align-items: center; } @keyframes rotate { from { transform: rotateX(-25deg) rotateY(0deg); } to { transform: rotateX(-25deg) rotateY(360deg); } } .circle { --speed: 4s; --size: 6rem; --border: 1rem; width: var(--size); height: var(--size); border-radius: 50%; border: var(--border) solid var(--color, #fff); animation: move .........完整代码请登录后点击上方下载按钮下载查看
网友评论0