css实现新冠疫苗注射的2021年效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现新冠疫苗注射的2021年效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style> *, *:after, *:before { box-sizing: border-box; } body { margin: 0; overflow: hidden; height: 100vh; display: grid; place-items: center; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .text-container { font-family: arial; font-size: 20vw; font-weight: 800; color: #0091EA; position: relative; } .zero { display: inline-block; position: relative; width: 14vw; height: 14vw; background: #0091EA; border-radius: 50%; border: 1px solid #0091EA; } .zero.covid-19 { background: #F9A825; border: 1px solid #FFA000; -webkit-animation: 10s covidEffect infinite; animation: 10s covidEffect infinite; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; } .zero.covid-19:before { content: ""; position: absolute; background: rgba(0, 0, 0, 0.45); width: 2vw; height: 2.5vw; left: 30%; top: 30%; border-radius: 50%; box-shadow: 4vw 0 rgba(0, 0, 0, 0.45); -webkit-animation: 10s eyeMove infinite; animation: 10s eyeMove infinite; } .zero.covid-19:after { content: ""; position: absolute; width: 5vw; height: 3vw; border-radius: 0 0 5vw 5vw; top: 57%; left: 34%; background: rgba(0, 0, 0, 0.45); -webkit-animation: 10s expChange infinite; animation: 10s expChange infinite; -webkit-animation-fill-mode: forwards; animation-fill-mode: forwards; } .zero.covid-19 .drop { width: 1.5vw; height: 1.5vw; background: #F44336; border-radius: 50%; position: absolute; left: 50%; top: -20%; -webkit-animation: 10s dropping infinite; animation: 10s dropping infinite; } .zero.covid-19 .drop:before { content: ""; width: 0.5vw; height: 0.5vw; background: #D50000; border-radius: 50%; position: absolute; left: 50%; top: 0; box-shadow: 0 0.5vw rgba(255, 255, 255, 0.2), -0.5vw 0.5vw rgba(0, 0, 0, 0.1), -0.25vw 0.85vw rgba(0, 0, 0, 0.2); } .zero.covid-19 .spike { position: absolute; width: 0.5vw; height: 2.5vw; background: #B71C1C; -webkit-animation: 10s spikeGrow infinite; animation: 10s spikeGrow infinite; } .zero.covid-19 .spike:before { content: ""; width: 1vw; height: 1vw; background: #D50000; border-radius: 50%; position: absolute; left: 50%; transform: translate(-50%, 0); } .zero.covid-19 .spike:nth-child(1) { left: 50%; bottom: 92%; } .zero.covid-19 .spike:nth-child(2) { left: 80%; bottom: 80%; transform: rotate(45deg); } .zero.covid-19 .spike:nth-child(3) { left: 20%; bottom: 80%; transform: rotate(-45deg); } .zero.covid-19 .spike:nth-child(4) { left: 100%; bottom: 50%; transform: rotate(90deg); } .zero.covid-19 .spike:nth-child(5) { left: 0%; bottom: 50%; transform: rotate(-90deg); } .zero.covid-19 .spike:nth-child(6) { left: 95%; top: 65%; transform: rotate(100deg); } .zero.covid-19 .spike:nth-child(7) { left: 0%; top: 65%; transform: rotate(-100deg); } .zero.covid-19 .spike:nth-child(8) { left: 80%; top: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0