Hai.
Thuộc tính chuyển tiếp cho bản dịch trong CSS3 là gì? Tôi hiện đang sử dụng all
nhưng tôi gặp lỗi trong iOS vì vậy tôi muốn thử nghiệm một thuộc tính khác.-webkit-transition-property để dịch
-webkit-transform: translate(-320px, 0);
-webkit-transition: ??? .5 ease-in-out;
Xem lỗi với một thiết bị iOS here (swipe ngang), có một loại đèn flash.
Cập nhật: cho bất cứ ai quan tâm, tôi tìm thấy một cách để sửa chữa nó nhờ Duopixel:
E {
-webkit-transition: all .5s ease-in-out;
-webkit-transform: translate3d(0, 0, 0); // perform an "invisible" translation
}
// Then you can translate with translate3d(), no bug!
document.querySelector('E').webkitTransform = 'translate3d(-320px, 0, 0)'
Tôi vẫn có đèn flash ở lần vuốt đầu tiên, sau đó nó biến mất. Tôi nghĩ tôi sẽ phải đối phó với nó. Dù sao cũng cảm ơn bạn! – seriousdev
Thử -webkit-backface-khả năng hiển thị: ẩn; liên quan: http://stackoverflow.com/questions/2946748/iphone-webkit-css-animations-cause-flicker – Duopixel