admin管理员组文章数量:1355123
I'm not sure what exactly happened, but I am pretty sure this was working at one point.
The event just isn't firing (or I am not catching it properly)
var $zoomBox = $('#zoomBox');
$zoomBox.bind('webkitTransitionEnd', function(e) {
alert("test");
});
$('.button').click(function (e) {
$zoomBox.css('-webkit-transform', 'matrix(2,1,1,2,300, 100)');
});
see fiddle below. After the box finishes transitioning, an alert should pop up, but the alert is not displaying.
/
I'm not sure what exactly happened, but I am pretty sure this was working at one point.
The event just isn't firing (or I am not catching it properly)
var $zoomBox = $('#zoomBox');
$zoomBox.bind('webkitTransitionEnd', function(e) {
alert("test");
});
$('.button').click(function (e) {
$zoomBox.css('-webkit-transform', 'matrix(2,1,1,2,300, 100)');
});
see fiddle below. After the box finishes transitioning, an alert should pop up, but the alert is not displaying.
http://jsfiddle/cGwb4/1/
Share Improve this question asked Feb 27, 2013 at 3:59 mikewmikew 1351 gold badge2 silver badges5 bronze badges 3- I checked it at jsfiddle/cGwb4/1 it working fine. – Rais Alam Commented Feb 27, 2013 at 4:01
- No you are true no alert is there let me try. – Rais Alam Commented Feb 27, 2013 at 4:06
- As jfreind00 said, you have to give it some transition: jsfiddle/cGwb4/4 – Passerby Commented Feb 27, 2013 at 4:14
1 Answer
Reset to default 7There's no transition specified in the CSS, so you aren't getting a transition at all. You're just changing the CSS for which there is no webkitTransitionEnd
event.
See the fixed example here (in Chrome or Safari): http://jsfiddle/jfriend00/75Mh2/ where I've added:
-webkit-transition: -webkit-transform 3s;
本文标签:
版权声明:本文标题:javascript - webkitTransitionEnd not firing - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743960423a2568920.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论