css3:
/*新属性:*/
transition: all 1s;
-webkit-transition: all 1s;
/*新增取值:*/
background: -webkit-linear-gradient(red, yellow);
js:
div.style.transition = 'none;
div.style.webkitTransition = 'none;
事件:
div.addEventListener('transitionend', function () {}); //使用addEventListener监听事件
div.addEventListener('webkitTransitionEnd', function () {}); //事件名采用驼峰命名