css布局实现兔子吹泡泡动画效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现兔子吹泡泡动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<style>
:root {
--bunny-size: 300px;
--bunny-color: pink;
--bunny-color-2: #f0a4cb;
--bunny-eye-color: #473929;
--bunny-cheek-color: red;
--bunny-tongue-color: red;
--bunny-mouth-color: #473929;
--bunny-nose-color: #473929;
--stick-color: #ff8819;
--stick-bubble-color-1: #9e9eff;
--stick-bubble-color-2: white;
--text-color: #473929;
--grass-color: #84cc84;
--grass-color-2: lightgreen;
--breathe-duration: 10s;
--bubble-color-1: #4fd5e7;
--bubble-color-2: #829fff;
--bubble-color-3: #76e0cf;
--bubble-color-4: #86befd;
--bubble-color-5: #91f1d9
}
body {
margin: 0;
background: linen;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Balsamiq Sans',cursive
}
.bunny-container {
width: var(--bunny-size);
height: var(--bunny-size)
}
.bunny {
width: 230px;
height: 300px;
transform: translateX(70px)
}
.bunny * {
position: absolute
}
.bunny__body {
width: 200px;
height: 200px;
background: var(--bunny-color);
border-radius: 100px 100px 30px 0;
transform: translateY(80px)
}
@keyframes eyesAnim {
0%,15%,17%,79%,81% {
transform: translate(40px,40px) rotateZ(6deg)
}
1.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0