买不到"梦中情墩",索性亲手画一个,用CSS画一个冰墩墩~
“冰墩墩(英文:Bing Dwen Dwen,汉语拼音:bīng dūn dūn),是2022年北京冬季奥运会的吉祥物。
“买不到梦中情,我索性亲手做一个!”
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif;
background: #d4ebf1;
color: #000;
}
.main_body {
width: 362px;
height: 410px;
border: #393939 8px solid;
margin: 50px auto;
border-radius: 88% 88% 62% 68% / 82% 82% 95% 84%;
position: absolute;
left: 109px;
top: -30px;
background: #fff;
}
.ear-left,
.ear-right {
background: #393939;
width: 81px;
height: 115px;
border-radius: 50%;
position: absolute;
z-index: -1;
}
.ear-left {
left: 150px;
top: 26px;
transform: rotate(-10deg);
}
.ear-right {
left: 362px;
top: 28px;
transform: rotate(10deg);
}
.eye-left,
.eye-right {
background: #393939;
width: 83px;
height: 115px;
border-radius: 50%;
position: absolute;
}
.eye-left {
left: 185px;
top: 122px;
transform: rotate(45deg);
}
.eye-right {
left: 329px;
top: 122px;
transform: rotate(-45deg);
}
.eye-left:before,
.eye-right:before {
content: "";
width: 40px;
height: 40px;
border: #fff 5px solid;
border-radius: 100%;
position: absolute;
}
.eye-left:before {
right: 10px;
top: 22px;
}
.eye-right:before {
left: 10px;
top: 22px;
}
.eye-left:after,
.eye-right:after {
content: "";
width: 10px;
height: 10px;
background: #9b9b9b;
border-radius: 100%;
position: absolute;
}
.eye-left:after {
right: 27px;
top: 31px;
}
.eye-right:after {
left: 41px;
top: 44px;
}
.main-face {
position: absolute;
border-radius: 48% 48% 44% 49%/ 53% 54% 45% 47%;
}
.circle_blue {
border: #6bcdf3 5px solid;
width: 280px;
height: 224px;
left: 150px;
top: 78px;
}
.circle_red {
border: #af2350 5px solid;
width: 287px;
height: 233px;
left: 146px;
top: 73px;
}
.circle_purple {
border: #5d75b3 5px solid;
width: 295px;
height: 240px;
left: 142px;
top: 70px;
}
.circle_yellow {
border: #ffc346 5px solid;
width: 305px;
height: 248px;
left: 137px;
top: 65px;
}
.circle_green {
border: #7fcb58 5px solid;
width: 313px;
height: 256px;
left: 133px;
top: 61px;
}
.arm-left,
.arm-right {
width: 75px;
background: #333;
position: absolute;
z-index: -1;
}
.arm-left {
height: 118px;
left: 64px;
top: 244px;
transform: rotate(45deg);
border-radius: 24% 69% 68% 76%/ 53% 95% 40% 52%;
}
.arm-right {
height: 148px;
left: 463px;
top: 162px;
transform: rotate(37deg);
border-radius: 56% 62% 98% 6%/ 40% 46% 80% 58%;
}
.arm-right:before,
.arm-right:after {
content: "";
width: 16px;
height: 24px;
background: #bc242c;
position: absolute;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
}
.arm-right:before {
transform: rotate(45deg);
left: 32px;
top: 20px;
}
.arm-right:after {
transform: rotate(-45deg);
left: 26px;
top: 20px;
}
.arm_c {
content: "";
width: 16px;
height: 24px;
position: absolute;
left: 426px;
top: 20px;
}
.main-nose {
background-color: #333333;
}
.main-nose:before,
.main-nose:after {
content: "";
position: absolute;
background-color: inherit;
}
.main-nose,
.main-nose:before,
.main-nose:after {
width: 28px;
height: 18px;
border-radius: 42px 42px 60px 61px/ 30px 30px 50px 46px;
}
.main-nose {
position: absolute;
left: 284px;
top: 187px;
}
.main-mouse {
position: absolute;
left: 265px;
top: 205px;
width: 68px;
height: 25px;
border-radius: 48%;
border: #393939 7px solid;
border-top: none;
border-left: 0;
border-right: 0;
}
.leg-left,
.leg-right {
background: #333;
position: absolute;
width: 83px;
height: 80px;
border-radius: 0 0 30px 30px;
z-index: -1;
}
.leg-left {
left: 187px;
top: 423px;
}
.leg-right {
left: 328px;
top: 423px;
}
.leg-left:after,
.leg-right:after {
content: "";
width: 43px;
height: 30px;
position: absolute;
background: #333;
border-radius: 30px;
}
.leg-left:after {
bottom: 0;
right: -3px;
}
.leg-right:after {
bottom: 0;
left: -3px;
}
</style>
</head>
<body>
<div class="main_body"></div>
<div class="ear-left"></div>
<div class="ear-right"></div>
<div class="eye-left"></div>
<div class="eye-right"></div>
<div class="main-face circle_blue"></div>
<div class="main-face circle_red"></div>
<div class="main-face circle_purple"></div>
<div class="main-face circle_yellow"></div>
<div class="main-face circle_green"></div>
<div class="main-nose"></div>
<div class="main-mouse"></div>
<div class="arm-left"></div>
<div class="arm-right"></div>
<div class="leg-left"></div>
<div class="leg-right"></div>
</body>
</html>
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭