【发布时间】:2012-01-18 23:31:12
【问题描述】:
我正在使用:
Data.$notification
.delay(1500)
.animate({
right: '+=' + (Data.$notification.width() + 45)
}, 700)
.delay(2500)
.animate({
right: '-=' + (Data.$notification.width() + 45)
}, 700, function() {
$(this).remove();
});
但它不够流畅,所以我想使用翻译 3D css 的人的建议。 ATM 我不能让它工作,我试过了:
Data.$notification
.delay(1500)
.addClass('move-into-view')
.delay(2500)
.removeClass('move-into-view').addClass('move-outof-view')
.delay(1500)
.remove();
在哪里
.rotate-notification.move-into-view {
-webkit-transform: translate3d(-175px, 0, 0);
}
.rotate-notification.move-outof-view {
-webkit-transform: translate3d(175px, 0, 0);
}
这真的可能吗?还是我走错了路?
【问题讨论】:
-
我在您的 CSS 中没有看到您实际定义
-webkit-transitions 的任何地方。
标签: jquery iphone css jquery-mobile