摘要: 2D变换方法:一般用于hover translate() rotate() scale() skew() matrix() 1、translate()方法 移动 translate()方法,根据左(X轴)和顶部(Y轴)位置给定的参数,从当前元素位置移动 实例 translate值(50px,100p 阅读全文
posted @ 2017-07-12 10:53 从你的世界路过 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 在一个例子中使用所有过渡属性: div { transition-property: width;/*all*/ transition-duration:1s;/*0.6s*/ transition-timing-function: linear;/*ease*/ transition-delay: 阅读全文
posted @ 2017-07-12 10:52 从你的世界路过 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1、CSS3 @keyframes规则 @keyframes myfirst { from {background: red;} to {background: yellow;} } @-webkit-keyframes myfirst /* Safari and Chrome */ { from 阅读全文
posted @ 2017-07-12 10:48 从你的世界路过 阅读(1032) 评论(0) 推荐(0) 编辑