css实现三环嵌套无限磨边循环动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现三环嵌套无限磨边循环动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; padding: 0; width: 100vw; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #101010; } .content { width: 50vmin; height: 50vmin; position: relative; display: flex; align-items: center; justify-content: center; animation: spin 2s linear 0s infinite; border-radius: 100%; } .content:hover { animation-play-state: paused; } @keyframes spin { 100% { transform: rotate(360deg); } } .content:before, .content:after { content: ""; border: 3vmin solid #fff0; width: 70%; height: 70%; border-radius: 100%; position: absolute; box-sizing: border-box; left: 0; box-shadow: 0vmin 2vmin 1vmin 0vmin #000, 0vmin 0vmin 1vmin 0 #000 inset; z-index: 1; border-left-color: #fff; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0