码迷,mamicode.com
首页 > Web开发 > 详细

css3 transiton

时间:2016-04-11 13:59:07      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:

div
{
width:100px;
height:100px;
background:yellow;

transition-property:width;

transition-duration:1s;

transition-timing-function:linear;  // transition-timing-function: linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(n,n,n,n);

transition-delay:2s;

/* Firefox 4 */

-moz-transition-property:width;
-moz-transition-duration:1s;
-moz-transition-timing-function:linear;
-moz-transition-delay:2s;
/* Safari and Chrome */
-webkit-transition-property:width;
-webkit-transition-duration:1s;
-webkit-transition-timing-function:linear;
-webkit-transition-delay:2s;
/* Opera */
-o-transition-property:width;
-o-transition-duration:1s;
-o-transition-timing-function:linear;
-o-transition-delay:2s;
}

div:hover
{
width:300px;
}

Internet Explorer 10、Firefox、Chrome 以及 Opera 支持 transition 属性。

Safari 需要前缀 -webkit-。

css3 transiton

标签:

原文地址:http://www.cnblogs.com/zhenxides/p/5377760.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!