translate:移动,transform的一个方法

              通过 translate() 方法,元素从其当前位置移动,根据给定的 left(x 坐标) 和 top(y 坐标) 位置参数:
          用法transform: translate(50px, 100px);
              -ms-transform: translate(50px,100px);
              -webkit-transform: translate(50px,100px);
              -o-transform: translate(50px,100px);
              -moz-transform: translate(50px,100px);
 
transform:变形。改变
                 CSS3中主要包括 旋转:rotate() 顺时针旋转给定的角度,允许负值 rotate(30deg)
                   扭曲:skew() 元素翻转给定的角度,根据给定的水平线(X 轴)和垂直线(Y 轴)参数:skew(30deg,20deg)
                   缩放:scale() 放大或缩小,根据给定的宽度(X 轴)和高度(Y 轴)参数: scale(2,4)
                   移动:translate() 平移,传进 x,y值,代表沿x轴和y轴平移的距离
                   所有的2D转换方法组合在一起: matrix()  旋转、缩放、移动以及倾斜元素
                   matrix(scale.x ,, , scale.y , translate.x, translate.y)      
   改变起点位置 transform-origin: bottom left;
   
   综合起来使用:transform: 30deg 1.5 30deg 20deg 100px 200px;
 
transition: 允许CSS属性值在一定的时间区间内平滑的过渡,
            需要事件的触发,例如单击、获取焦点、失去焦点等
            transition:property duration timing-function delay;
                   property:CSS的属性,例如:width height 为none时停止所有的运动,可以为transform
           
                   duration:持续时间
                   timing-function:ease等
                   delay:延迟
                   注意:当property为all的时候所有动画
            例如:transition:width 2s ease 0s;
            http://www.w3cplus.com/content/css3-transition

最新文章

  1. keepalived从机接管后主机恢复不抢占VIP
  2. Bubble Cup 8 finals I. Robots protection (575I)
  3. 启用CentOS6.5 64位安装时自带的MySQL数据库服务器
  4. Linux 我的笔记
  5. Appium 客户端库 API
  6. Eclipse的各种快捷键
  7. Block 的基本用法
  8. WPF 傻瓜生成 .dbml文件,以及文件用途原理是什么
  9. shell export
  10. 【面试虐菜】—— JAVA面试题(3)
  11. android gridview按钮边框和定制点击颜色
  12. java新手笔记16 面积
  13. 关于bootStrapdialog 学习心得
  14. 开始使用THREE.JS
  15. flexigrid
  16. express4.x的使用
  17. vue 中 直接操作 cookie 及 如何使用工具 js-cookie
  18. 树莓派学习笔记(7):利用bypy实现树莓派NAS同步百度云
  19. win10 Xshell5连ubuntu服务器
  20. Spring Boot 项目初始化

热门文章

  1. 远程连接MySQL数据库报错:is not allowed to connect to this MYSQL server的解决办法
  2. RGB直方图与UV直方图
  3. 解决VS2013中的控制台一闪而过的问题
  4. Springboot-读取核心配置文件及自定义配置文件
  5. Qt程序无法输入中文的问题
  6. 白盒测试实践--Day2
  7. mysql 添加字段,修改字段的用法
  8. spring mvc---controller返回值
  9. linux 进阶2--C++读取lua文件中的变量、一维表、二维表
  10. 7、Semantic-UI之图标与按钮组