css实现挥手眨眼睛雪人效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现挥手眨眼睛雪人效果代码

代码标签: css 挥手 眨眼睛 雪人

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

<!DOCTYPE html>

<html lang="en">

<head>

   
<meta charset="UTF-8">





   
<style>
        * {
          margin: 0;
          padding: 0;
        }
       
        body {
          height: 100vh;
          width: 100vw;
          background: #b3d3c3;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
        }
       
        .snowman {
          position: relative;
          background: linear-gradient(
            166deg,
            rgba(255, 255, 255, 1) 78%,
            rgba(248, 244, 238, 1) 88%
          );
          height: 23vmin;
          width: 25vmin;
          border-radius: 48% 52% 51% 49% / 53% 53% 47% 47%;
          top: 9vmin;
        }
       
        .snowman::after {
          position: absolute;
          content: "";
          background: linear-gradient(
            166deg,
            rgba(255, 255, 255, 1) 78%,
            rgba(248, 244, 238, 1) 88%
          );
          height: 20vmin;
          width: 25vmin;
          border-radius: 48% 52% 51% 49% / 58% 59% 41% 42%;
          top: -13vmin;
        }
       
        .snowman::before {
          position: absolute;
          content: "";
          background: #f4e8e1;
          height: 10vmin;
          width: 16vmin;
          border-radius: 48% 52% 51% 49% / 58% 59% 41% 42%;
          left: 4.5vmin;
          top: -2vmin;
        }
       
        .snowman-face {
          position: relative;
          background: #20313d;
          height: 2vmin;
          width: 2vmin;
          border-radius: 50%;
          top: -2vmin;
          left: 7vmin;
       
          box-shadow: 9vmin 0 #20313d;
          z-index: 1;
       
          animation: blink 6s infinite;
        }
       
        .snowman-face::after {
          position: absolute;
          content: "";
          background: white;
          height: 0.4vmin;
          width: 0.4vmin;
          border-radius: 50%;
          left: 1.1vmin;
          top: 0.4vmin;
       
          box-shadow: 9vmin 0 white;
        }
       
        .snowman-nose {
        .........完整代码请登录后点击上方下载按钮下载查看

网友评论0