css实现可爱小老虎效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现可爱小老虎效果代码

代码标签: css 老虎 可爱

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        .container, body {
          display: flex;
          align-items: center;
          justify-content: center;
        }
        
        body {
          height: 100vh;
          background-color: #d6edf7;
        }
        
        .container {
          width: 250px;
          height: 250px;
          background-color: #e4f1f7;
          border-radius: 50%;
          position: relative;
        }
        @media screen and (min-width: 640px) {
          .container {
            width: 400px;
            height: 400px;
          }
        }
        
        .head {
          width: 60%;
          height: 60%;
          border-radius: 50%;
          background-color: #ffc850;
          position: relative;
        }
        
        .head-copy {
          width: 100%;
          height: 100%;
          border-radius: 50%;
          background-color: #ffc850;
          position: absolute;
          z-index: 3;
        }
        
        .eye {
          width: 12%;
          height: 18%;
          border-radius: 40%;
          background-color: #4b3f4e;
          position: absolute;
          top: 45%;
          z-index: 4;
        }
        .eye.left {
          left: 20%;
        }
        .eye.rigth {
          right: 20%;
        }
        
        .inner-eye {
          width: 45%;
      .........完整代码请登录后点击上方下载按钮下载查看

网友评论0