文章详情页
angular.js - AngularJS link函数里调用CSS transition transform 是瞬发的,
浏览:109日期:2023-07-27 15:02:32
问题描述
link: function(scope, element, attrs) { element.parent().find(’.right’).css({’transition’: 'all 0.6s linear 0s',’transform’:'rotate(180deg)' });} 页面显示直接就转了180度,没有0.6秒的效果。
问题解答
回答1:这么写试试呢?
element.parent().find(’.right’).css({’transition’: 'all 0.6s linear 0s'});setTimeout(function(){ element.parent().find(’.right’).css({’transform’: 'rotate(180deg)'});});
标签:
CSS
相关文章:
1. python - 如何在docker上部署pyspider2. python2.7为什么点击了"开始"按钮后,tkinter上的按钮,图中红色部分,再也点不动了?3. 现在大家是用Mysql还是mariaDb?4. mysql - Access denied for user ’ODBC’@’localhost’ (using password: NO)5. 关于python的继承的一个疑问6. python - 关于计算日期的问题7. javascript - 微信小程序 如何实现这种左滑动出现删除的办法?有相关api吗?8. python3.x - 如何将python3.4的程序转为python2.79. 百度地图api - Android百度地图SDK,MapView上层按钮可见却不可触,怎么解决?10. mysql - msql什么叫并发
排行榜

网公网安备