文章详情页
angular.js - AngularJS link函数里调用CSS transition transform 是瞬发的,
浏览:131日期: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. 前端 - 提问关于background-image不显示的问题2. mysql sql where id in(25,12,87) 结果集如何用按照 25 12 87排序?3. 使用未定义的常量user_id-假定为“user_id”4. javascript - 在top.jsp点击退出按钮后,right.jsp进行页面跳转,跳转到login.jsp5. javascript - 如何在外部点击,跳转到网页后,显示指定的模块。6. css - 关于background-position百分比的问题?7. java - Spring boot项目 可以通过ip+port+contentPath就直接显示所有的接口地址和数据信息,这是为什么???8. java - 阿里的开发手册中为什么禁用map来作为查询的接受类?9. python - Flask 脚本,运行一段时间后无响应10. atom开始输入!然后按tab只有空格出现没有html格式出现
排行榜

网公网安备