Coin163

首页 > css3 - AngularJS link函数里调用CSS transition transform 是瞬发的,

css3 - AngularJS link函数里调用CSS transition transform 是瞬发的,

相关标签: angularjs, css3,

相关推荐:css3 - angular使用transition时无效

html代码<div style="position:relative"> <img src=".." class="default" ng-class="{animate : attr}" /></div>css代码.default{ position:absolute; display:block; top:0; left:0; transition:all 1s ease 0s;}.animate{ top:-10

link: function(scope, element, attrs) {

element.parent().find('.right').css({

'transition': "all 0.6s linear

0s",

'transform':"rotate(180deg)"

});

}

页面显示直接就转了180度,没有0.6秒的效果。

link: function(scope, element, attrs) { element.parent().find('.right').css({ 'transition': "all 0.6s linear 0s", 'transform':"rotate(1...

------分隔线----------------------------