css实现原子能源变风车动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现原子能源变风车动画效果代码,寓意原子能应该造福人类,切莫毁灭人类。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> .base { position: relative; margin: 0 auto; width: 150px; height: 150px; border: 5px solid #000; border-radius: 100%; -webkit-animation: intro ease-out 1s 2s forwards; animation: intro ease-out 1s 2s forwards; } .base div { position: relative; width: 150px; height: 150px; border-radius: 100%; -webkit-animation: fan linear 1s 2s infinite; animation: fan linear 1s 2s infinite; } .base::before { position: absolute; top: 50%; left: 50%; margin-left: -3px; width: 6px; height: 250px; background-color: #000; content: ""; opacity: 0; -webkit-animation: stick ease-out 1s 2.7s forwards; animation: stick ease-out 1s 2.7s forwards; } ul { position: absolute; top: 4px; right: 4px; bottom: 4px; left: 4px; margin: 0; padding: 0; border-radius: 100%; overflow: hidden; list-style: none; will-change: transform; } ul::before, ul::after { position: absolute; top: 50%; left: 50%; display: block; width: 40px; height: 40px; border-radius: 100%; border: 4px solid #f9e231; background: #000; transform: translateX(-50%) translateY(-50%); content: ""; } ul li { position: absolute; top: -27px; left: 13px; border: 58px solid transparent; border-top-width: 100px; border-top-color: #000; border-bottom-width: 0; transform-origin: 50% 100%; } ul li:nth-child(1) { transform: rotate(-60deg); } ul li:nth-child(2) { transform: rotate(60deg); } ul li:nth-child(3) { transform: rotate(180deg); } h1 { position: absolute; top: 0; margin: 0; width: 100%; font-weight: 100; text-align: center; transform: translateY(-150%); } h1 span { -webkit-animation: fade ease-out 0.3s 2.4s forwards; animation: fade eas.........完整代码请登录后点击上方下载按钮下载查看
网友评论0