这里看一下效果,数据移动到上面会有变化
transition:[ transition-property ] || [ transition-duration ] || [ transition-timing-function ] || [ transition-delay ]
[ transition-property ]:
检索或设置对象中的参与过渡的属性
[ transition-duration ]:
检索或设置对象过渡的持续时间
[ transition-timing-function ]:
检索或设置对象中过渡的动画类型
[ transition-delay ]:
检索或设置对象延迟过渡的
下面是源码
- .a{ width:300px; height:30px; background:#0C9;-webkit-transition: width 1s ease,background-color 1s ease }
- .a:hover{background-color:#9C0; width:150px; height:30px; -webkit-transition: width 1s ease,background-color 1s ease}