zoukankan      html  css  js  c++  java
  • 分享一款在线贝塞尔曲线调试器

    前言

      介于很多前端小伙伴对于css3的动画的运动速度不太理解,今天就分享一款可以在线调试的贝塞尔曲线,附上链接,http://cubic-bezier.com/#.17,.67,.83,.67

    规则

    1. ease  对应自定义cubic-bezier(.25,.01,.25,1),效果为先慢后快再慢; 
    1

    2. linear  对应自定义cubic-bezier(0,0,1,1),效果为匀速直线; 
    2

    3. ease-in  对应自定义cubic-bezier(.42,0,1,1),效果为先慢后快; 
    3

    4. ease-out  对应自定义cubic-bezier(0,0,.58,1),效果为先快后慢; 
    4

    5. ease-in-out  对应自定义cubic-bezier(.42,0,.58,1),效果为先慢后快再慢。 
    5

    用法

    <!DOCTYPE html>
    <html lang="zh-cn">
    <head>
      <meta charset="UTF-8">
      <title>demo</title>
    
      <style>
        .linear {
           50px;
          height: 50px;
          background-color: #ff0000;
          -webkit-transition:  all 2s linear;
             -moz-transition:  all 2s linear;
               -o-transition:  all 2s linear;
                  transition:  all 2s linear;
        }
        .linear:hover {
          -webkit-transform:  translateX(100px);
             -moz-transform:  translateX(100px);
               -o-transform:  translateX(100px);
                  transform:  translateX(100px);
        }
    
        .custom {
           50px;
          height: 50px;
          background-color: #00ff00;
          -webkit-transition:  all 2s cubic-bezier(.94,-0.25,.32,1.31);
             -moz-transition:  all 2s cubic-bezier(.94,-0.25,.32,1.31);
               -o-transition:  all 2s cubic-bezier(.94,-0.25,.32,1.31);
                  transition:  all 2s cubic-bezier(.94,-0.25,.32,1.31);
        }
        .custom:hover {
          -webkit-transform:  translateX(200px);
             -moz-transform:  translateX(200px);
               -o-transform:  translateX(200px);
                  transform:  translateX(200px);
        }
      </style>
    </head>
    <body>
      <div class="linear"></div>
      <div class="custom"></div>
    </body>
    </html>
  • 相关阅读:
    AD账号解锁
    Django中的DateTimeField格式
    接口调用,输出结果为Json格式(ConvertTo-Json),提交参数给URL(WebRequest)
    jQuery表格排序(tablesorter)
    Python脚本性能分析
    监控文件内容变化,即时写入到新文件(tail)
    导出目录权限
    多进程、多线程处理文件对比
    shell 实例收集
    DHCP : 网络世界身份的获取
  • 原文地址:https://www.cnblogs.com/jinhengyu/p/10257789.html
Copyright © 2011-2022 走看看