css小熊送爱心表白效果代码
代码语言:html
所属分类:表白
代码描述:css小熊送爱心表白效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
display: grid;
place-items: center;
height: 100vh;
padding: 0;
margin: 0;
background-color: pink;
overflow: hidden;
}
.main {
position: absolute;
top: 20%;
}
.head {
height: 50vmin;
width: 60vmin;
background-color: white;
border-radius: 50%;
}
.head:before,
.head:after {
content: "";
display: block;
height: 20vmin;
width: 25vmin;
background:radial-gradient(circle at 50% 70%, rgba(251, 111, 145, 1) 50%, rgba(255, 255, 255, 1) 50%);
border-radius: 50% 50% 100% 0% / 50% 100% 0% 50% ;
position: relative;
z-index: -1;
}
.head:before {
top: -5vmin;
left: -6vmin;
transform: rotate(-45deg);
}
.head:after {
top: -43vmin;
left: 45vmin;
transform: rotate(45deg);
}
.eye1,
.eye2 {
height: 10vmin;
width: 10vmin;
background:
radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 242, 255, 1) 70%);
border-radius: 50%;
position: relative;
}
.eye1 {
top: -5vmin;
left:10vmin;
}
.eye2 {
top: -15vmin;
left: 40vmin;
}
.eye1:before,
.eye2:before {
content: "";
display: block;
height: 4vmin;
width: 3.5vmin;
background-color: white;
border-radius: 50%;
position: relative;
left: 2.5vmin;
top: 1vmin;
}
.eye1:after,
.eye2:after {
content: "";
display: block;
height: 2vmin;
width: 2vmin;
background-color: white;
border-radius: 50%;
position: relative;
left: 6.5vmin;
}
.nose {
height:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0