css绘制可爱小老虎动物效果代码
代码语言:html
所属分类:布局界面
代码描述:css绘制可爱小老虎动物效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
height: 100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
}
.container {
position: relative;
background: #69d0ef;
height: 70vmin;
width: 70vmin;
display: flex;
align-items: center;
justify-content: center;
}
.mouse-body {
position: relative;
align-self: end;
border-bottom: 25vmin solid #fafafa;
border-left: 6vmin solid transparent;
border-right: 6vmin solid transparent;
height: 0;
width: 17vmin;
}
.mouse-body::after {
position: absolute;
content: '';
background: white;
height: 30.5vmin;
width: 41.5vmin;
border-radius: 50% 50% 50% 50% / 65% 65% 35% 35% ;
top: -14vmin;
left: -12vmin;
}
.mouse-eyes {
position: relative;
background: black;
height: 5vmin;
width: 5vmin;
border-radius: 50%;
top: -2.5vmin;
left: -2.5vmin;
z-index: 1;
box-shadow: 17.5vmin 0;
}
.mouse-eyes::after {
position: absolute;
content: '';
background: white;
height: 1.5vmin;
width: 1.5vmin;
border-radius: 50%;
left: 2.5vmin;
top: 1vmin;
box-sha.........完整代码请登录后点击上方下载按钮下载查看
网友评论0