1 Star 0 Fork 1

orangezj/第三次修改svg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
style.css 2.33 KB
一键复制 编辑 原始数据 按行查看 历史
orangezj 提交于 2019-11-07 20:36 . 第三次上传svg
*, *::before, *::after {
box-sizing: border-box;
}
body {
background: #000088;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
min-height: 100vh;
}
.lightbulb__container {
position: relative;
width: 15rem;
height: 19rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.lightbulb__container .lightbulb__bulb {
position: relative;
width: 13rem;
height: 13rem;
background: #FEFFBE;
border-radius: 50%;
}
.lightbulb__container .lightbulb__bulb_inside {
position: absolute;
right: 1rem;
top: 2rem;
width: 8rem;
height: 8rem;
border-right: 1.15rem solid #FCFCF7;
border-radius: 50%;
transform: rotateZ(-20deg);
}
.lightbulb__container .lightbulb__bulb_bottom {
position: absolute;
width: 10rem;
height: 4rem;
bottom: -1.5rem;
left: calc(50% - 5rem);
background: #FEFFBE;
border-radius: 0 0 1rem 1rem;
}
.lightbulb__container .lightbulb__bulb::before, .lightbulb__container .lightbulb__bulb::after {
content: '';
display: block;
position: absolute;
z-index: 5;
top: 73%;
width: 8rem;
height: 8rem;
background: #283156;
}
.lightbulb__container .lightbulb__bulb::before {
left: -41%;
border-top-right-radius: 50%;
}
.lightbulb__container .lightbulb__bulb::after {
right: -41%;
border-top-left-radius: 50%;
}
.lightbulb__container .lightbulb__base {
z-index: 10;
position: absolute;
bottom: 1.75rem;
width: 7.25rem;
height: 2.5rem;
background: #888F98;
border-radius: 0.5rem;
}
.lightbulb__container .lightbulb__glow {
z-index: 8;
position: absolute;
top: 10%;
left: 50%;
transform: translateX(-50%) translateY(-15%) scale(0.5);
filter: blur(5rem);
width: 16rem;
height: 16rem;
border-radius: 50%;
background: radial-gradient(#FEFFBE 25%, transparent 80%);
animation: glow 5s ease infinite;
}
.lightbulb__container .lightbulb__spiral {
width: 5rem;
height: 1.5rem;
background: #7a828c;
border-radius: 0.5rem;
background-image: linear-gradient(180deg, transparent 45%, #565c64 10%);
background-size: 50% 30%;
}
@keyframes glow {
0% {
transform: translateX(-50%) translateY(-15%) scale(0.5);
}
50% {
transform: translateX(-50%) translateY(-15%) scale(1.15);
}
100% {
transform: translateX(-50%) translateY(-15%) scale(0.5);
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/orangezj/modify_svg_for_the_third_time.git
git@gitee.com:orangezj/modify_svg_for_the_third_time.git
orangezj
modify_svg_for_the_third_time
第三次修改svg
master

搜索帮助