div+css实现无限循环双环磨边动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现无限循环双环磨边动画效果代码,鼠标悬浮暂停。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> :root { --inner: 85%; } 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; border-radius: 100%; animation: spin 2s linear 0s infinite; } .content:hover { animation-play-state: paused; } @keyframes spin { 100% { transform: rotate(360deg); } } .content:before { content: ""; border: 3vmin solid #fff0; width: var(--inner); height: var(--inner); border-radius: 100%; position: absol.........完整代码请登录后点击上方下载按钮下载查看
网友评论0