link: function(scope, element, attrs) {
element.parent().find('.right').css({
'transition': "all 0.6s linear 0s",
'transform':"rotate(180deg)"
});
}
页面显示直接就转了180度,没有0.6秒的效果。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这么写试试呢?