css布局实现鸟儿太阳下吃鱼效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现鸟儿太阳下吃鱼效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
html {
height: 100%;
}
body {
background: radial-gradient(at 76% 28%,#FFA100 -37%,#72FFF6 101%);
height: 100%;
}
/*Colors*/
.grass {
background: #7ebc6f;
}
.rock {
background: #b1aaa4;
}
.head, .wings {
background: #11b197;
}
.container {
height: 510px;
position: absolute;
overflow: hidden;
width: 100%;
bottom: 0;
}
.container > .grass {
position: absolute;
bottom: 0;
height: 5px;
display: block;
width: 100%;
border-bottom: 1px solid #67b65a;
}
#bird-wrapper {
height: 510px;
width: 765px;
position: absolute;
/* top: 0; */
left: 50%;
bottom: 0;
margin-left: -334px;
}
/*--- Sun ---*/
#sun {
position: fixed;
right: 20%;
top: 20%;
height: 137px;
width: 137px;
background: #e86c48;
border-radius: 50%;
box-sizing: border-box;
padding: 5px;
border: 10px solid #efa588;
}
/*--- Bird ---*/
#bird {
position: absolute;
bottom: 45px;
width: 433px;
height: 306px;
left: 148px;
}
.head {
position: absolute;
top: 7px;
left: 110px;
height: 80px;
width: 107px;
transform: rotate(43deg);
border-radius: 63% 0 0 40%;
}
.head .eye {
position: absolute;
top: 31px;
left: 20px;
width: 9px;
height: 9px;
background: #3f2a27;
border-radius: 50%;
}
.crest {
position: absolute;
top: 4px;
left: 139px;
height: 26px;
width: 74px;
border-top-left-radius: 18px;
overflow: hidden;
}
.crest .crest-1,
.crest .crest-2 {
position: absolute;
height: 0;
width: 0;
border-color: #21957e transparent transparent transparent;
border-style: solid;
border-width: 14px 27px 0px 37px;
z-index: -5;
display: block;
}
.crest .crest-1 {
left: 11px;
top: 0px;
}
.crest .crest-2 {
left: 11px;
top: 12px;
}
.head .head-lines {
position: absolute;
top: 31px;
left: 29px;
height: 31px;
width: 57px;
transform: rotate(2deg);
}
.head-lines > span {
display: block;
width: 100%;
height: 50%;
border.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0