div+css实现炫酷风火轮旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现炫酷风火轮旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { width: 100%; height: 100%; } body { background-color: #140032; overflow: hidden; margin: 0; } body * { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; } .circles .circle { -webkit-animation: Claws 1.35s linear infinite; animation: Claws 1.35s linear infinite; } .circles:nth-child(1) { transform: rotate(36deg) translate(150px); } .circles:nth-child(2) { transform: rotate(72deg) translate(150px); } .circles:nth-child(3) { transform: rotate(108deg) translate(150px); } .circles:nth-child(4) { transform: rotate(144deg) translate(150px); } .circles:nth-child(5) { transform: rotate(180deg) translate(150px); } .circles:nth-child(6) { transform: rotate(216deg) translate(150px); } .circles:nth-child(7) { transform: rotate(252deg) translate(150px); } .circles:nth-child(8) { transform: rotate(288deg) translate(150px); } .circles:nth-child(9) { transform: rotate(324deg) translate(150px); } .circles:nth-child(10) { transform: rotate(360deg) translate(150px); } .circles .claw { width: 300px; height: 150px; border-right: 5px solid; border-radius: 20%; } .circles .claw:nth-child(1) { border-color: #ff0700; transform: scale(0.0333333333) rotate(12deg) translate(-300px); } .circles .claw:nth-child(2) { border-color: #ff0e00; transform: scale(0.0666666667) rotate(24deg) translate(-300px); } .circles .claw:nth-child(3) { border-color: #ff1500; transform: scale(0.1) rotate(36deg) translate(-300px); } .circles .claw:nth-child(4) { border-color: #ff1c00; transform: scale(0.1333333333) rotate(48deg) translate(-300px); } .circles .claw:nth-child(5) { border-color: #ff2300; transform: scale(0.1666666667) rotate(60deg) translate(-300px); } .circles .claw:nth-child(6) { border-color: #ff2b00; transform: scale(0.2) rotate(72deg) translate(-300px); } .circles .claw:nth-child(7) { border-color: #ff3200; transform: scale(0.2333333333) rotate(84deg) translate(-300px); } .circles .claw:nth-child(8) { border-color: #ff3900; transform: scale(0.2666666667) rotate(96deg) translate(-300px); } .circles .claw:nth-child(9) { border-color: #ff4000; transform: scale(0.3) rotate(108deg) translate(-300px); } .circles .claw:nth-child(10) { border-color: #ff4700; transform: scale(0.3333333333) rotate(120deg) translate(-300px); } .circles .claw:nth-child(11) { border-color: #ff4e00; transform: scale(0.3666666667) rotate(132deg) translate(-300px); } .circles .claw:nth-child(12) { border-color: #ff5500; transform: scale(0.4) rotate(144deg) translate(-300px); } .circles .claw:nth-child(13) { border-color: #ff5c00; transform: scale(0.4333333333) rotate(156deg) translate(-300px); } .circles .claw:nth-child(14) { border-color: #ff6300; transform: scale(0.4666666667) rotate(168deg) translate(-300px); } .circles .claw:nth-child(15) { border-color: #ff6a00; transform: scale(0.5) rotate(180deg) translate(-300px); } .circles .claw:nth-child(16) { border-color: #ff7100; transform: scale(0.5333333333) rotate(192deg) translate(-300px); } .circles .claw:nth-child(17) { border-color: #ff7800; transform: scale(0.5666666667) rotate(204deg) translate(-300px); } .circles .claw:nth-child(18) { border-color: #ff8000; transform: scale(0.6) rotate(216deg) translate(-300px); } .circles .claw:nth-child(19) { border-color: #ff8700; transform: scale(0.6333333333) rotate(228deg) translate(-300p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0