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-rad.........完整代码请登录后点击上方下载按钮下载查看

网友评论0