css实现煎蛋情人节表白动画效果代码
代码语言:html
所属分类:表白
代码描述:css实现煎蛋情人节表白动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Josefin+Sans:300");
body {
background: #48befe;
font-family: 'Josefin Sans', sans-serif;
font-size: 12px;
}
.container {
position: absolute;
white-space: nowrap;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
ul {
margin: 0;
padding: 0;
}
ul li {
list-style: none;
}
.egg {
width: 175px;
height: 220px;
border-radius: 100px 100px 0px 0px;
background: #fdfeff;
position: relative;
display: inline-block;
animation: floating 5s ease-out infinite;
left: -5%;
}
.egg .face {
width: 130px;
height: 130px;
background: #ffdb10;
position: absolute;
margin: 15% 15%;
border-radius: 100%;
box-shadow: inset -10px 1px 0 #ffcc24;
}
.egg .face .eyes {
width: 15px;
height: 15px;
background: #000;
border-radius: 100%;
position: relative;
top: 55px;
left: 38px;
animation: blink 3s infinite 2s;
}
.egg .face .eyes::after {
content: "";
width: 15px;
height: 15px;
position: absolute;
background: #000;
border-radius: 100%;
left: 50px;
}
.egg .face .smile {
position: relative;
border-bottom-left-radius: 90px;
border-bottom-right-radius: 90px;
width: 30px;
height: 15px;
background: #000;
left: 55px;
top: 60px;
}
.egg .face .smile::after {
content: "";
position: absolute;
width: 10px;
height: 5px;
background: #ff7e7e;
border-radius: 100%;
left: 10px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0