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

CSS Transition

时间:2017-08-25 00:04:40      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:eve   tps   func   when   ansi   log   nbsp   fun   using   

CSS Transition

  CSS transitions provide a way to control animation speed when changing CSS properties. Instead of having property changes take effect immediately, you can cause the changes in a property to take place over a period of time.

div
{
    width:100px;
    transition: width 2s;
}

 

transition: property duration timing-function delay;

 

参考:

1、https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions

CSS Transition

标签:eve   tps   func   when   ansi   log   nbsp   fun   using   

原文地址:http://www.cnblogs.com/tekkaman/p/7425596.html

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