• 【piu~】制作一只变形小鸡~


    http://codepen.io/pick上看到的,,,具体是谁忘了,反正我只截了最萌的一段,作者越改越不萌ಥ_ಥ

    谷哥哥随便一搜就有很多好玩的,度娘就...(  ̄ ▽ ̄)o╭╯☆#╰ _─﹏─)╯
    **效果如下:**
      <div class="comb comb"></div>
      <div class="eye eye--l"></div>
      <div class="eye eye--r"></div>
      <div class="beak"></div>
    

























    code:

    <section class="frame">
      <div class="chicken">
    
          <div class="comb comb"></div>
          <div class="eye eye--l"></div>
          <div class="eye eye--r"></div>
          <div class="beak"></div>
    
      </div>
    </section>
    
    
    <style>
    .frame {
       position: absolute;
       top: 95%;
       left: 35%;
       -webkit-transform: translate(-50%, -50%); 
           -ms-transform: translate(-50%, -50%);
               transform: translate(-50%, -50%);
        500px;
       height: 500px;
       background-color: #BDFAEB
    }
    
    
    .chicken {
      position: absolute;
      top: 100px;
      left: 130px;
       234px;
      height: 234px;
    }
    .chicken:before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background-color: white;
      -webkit-transition: all 0.3s cubic-bezier(0.98, 0, 0.55, 1);
              transition: all 0.3s cubic-bezier(0.98, 0, 0.55, 1);
    }
    .chicken:hover:before {
      border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      -webkit-transform: scaleX(0.6838);
          -ms-transform: scaleX(0.6838);
              transform: scaleX(0.6838);
    }
    
    
    .comb {
      position: absolute;
      bottom: 100%;
      left: 50%;
       22px;
      height: 38px;
      margin-left: -11px;
      background-color: #FB6765;
      -webkit-transform-origin: 50% 100%;
          -ms-transform-origin: 50% 100%;
              transform-origin: 50% 100%;
      -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.98, 0, 0.55, 1);
              transition: transform 0.3s cubic-bezier(0.98, 0, 0.55, 1);
    }
    
    .chicken:hover .comb {
      -webkit-transform: scaleY(0);
          -ms-transform: scaleY(0);
              transform: scaleY(0);
    }
    
    
    .eye {
      position: absolute;
      top: 36px;
       14px;
      height: 14px;
      background-color: black;
      border-radius: 50%;
      -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.98, 0, 0.55, 1);
              transition: transform 0.3s cubic-bezier(0.98, 0, 0.55, 1);
    }
    
    .chicken:hover .eye {
      -webkit-transform: scale(0);
          -ms-transform: scale(0);
              transform: scale(0);
    }
    
    .eye--l {
      left: 48px;
    }
    
    .eye--r {
      right: 48px;
    }
    
    
    .beak {
      position: absolute;
      top: 56px;
      left: 50%;
       36px;
      height: 36px;
      margin-left: -18px;
      background-color: #FB6765;
      border-radius: 50%;
      -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.98, 0, 0.55, 1);
              transition: transform 0.3s cubic-bezier(0.98, 0, 0.55, 1);
    }
    
    .chicken:hover .beak {
      -webkit-transform: scale(0);
          -ms-transform: scale(0);
              transform: scale(0);
    }
    
    
    </style>
    
    
    我所理解的生活,就是和喜欢的一切在一起。
  • 相关阅读:
    修复VirtualBox "This kernel requires the following features not present on the CPU: pae Unable to boot – please use a kernel appropriate for your CPU"
    前几天入手一大菠萝,写个初始化教程
    CentOS 安装 Mogodb(在线 && 离线)
    Mongodb中经常出现的错误(汇总)child process failed, exited with error number
    XShell删除键之类的不正常
    XFtp中文乱码解决
    Xshell不能连接SSH的解决(附Kali2.0 SSH连接)
    Virtual Box 工具栏(菜单栏)消失的解决方法
    Kali无法定位软件包的解决方案
    数据库备份相关
  • 原文地址:https://www.cnblogs.com/suzyc/p/4702450.html
Copyright © 2020-2023  润新知