css实现发光条旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现发光条旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; height: 100vh; align-items: center; justify-content: center; background-color: black; } .loader { width: 20em; height: 20em; font-size: 10px; position: relative; display: flex; align-items: center; justify-content: center; margin:100px auto; } .loader .face { position: absolute; border-radius: 50%; border-style: solid; animation: animate 3s linear infinite; } .loader .face:nth-child(1) { width: 100%; height: 100%; color: gold; border-color: currentColor transparent transparent currentColor; border-width: 0.2em 0.2em 0em 0em; --deg: -45deg; animation-direction: normal; } .loader .face:nth-child(2) { width: 70%; height: 70%; color: lime; border-color: currentColor currentColor transparent transparent; border-width: 0.2em 0em 0em 0.2em; --deg: -135deg; animation-direc.........完整代码请登录后点击上方下载按钮下载查看
网友评论0