单个div+css实现一个电吹风吹风机吹风动画效果代码

代码语言:html

所属分类:动画

代码描述:单个div+css实现一个电吹风吹风机吹风动画效果代码

代码标签: 单个 div css 电吹风 吹风机 动画

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">



    <style>
        body {
          display: grid;
          place-items: center;
          height: 100vh;
        }
        body:before {
          content: "";
          position: absolute;
          width: 300px;
          height: 60px;
          top: calc(50% - 140px);
          left: calc(50% + 140px);
          --w: 45px;
          --h: 15px;
          -webkit-mask: linear-gradient(to right, rgba(255, 255, 255, 0.001) 10px, #000 20px, #000, rgba(255, 255, 255, 0.001));
                  mask: linear-gradient(to right, rgba(255, 255, 255, 0.001) 10px, #000 20px, #000, rgba(255, 255, 255, 0.001));
          background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.001) 10px, #dce5e4 10px, #dce5e4 12px, rgba(255, 255, 255, 0.001) 12px) 50% 50%/var(--w) var(--h), radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0.001) 10px, #dce5e4 10px, #dce5e4 12px, rgba(255, 255, 255, 0.001) 12px) calc(50% - 22.5px) 50%/var(--w) var(--h);
          z-index: 10;
          -webkit-animation: blowing 1s linear infinite, rotate 4s ease-in-out infinite alternate;
                  animation: blowing 1s linear infinite, rotate 4s ease-in-out infinite alternate;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0