0
我目前正在使用Zepto.js的动画在Backbone.js的移动应用和页面转换期间有一个noticible白色闪烁,这是相当令人不快的视觉。我似乎无法想象,任何人都有一个想法,为什么这可能会发生?动画与Backbone.js的/ Zepto.js
我的动画代码如下:
var $old = $('.page').not(this.el);
//This fix was hard-won, just doing .css(property, '') doesn't work!
$old.get(0).style["margin-left"] = ""
$old.get(0).style["-webkit-transform"] = ""
this.$el.appendTo('body').hide();
this.$el.show().css({"margin-left": 320 * direction_coefficient});
var that=this;
that.$el.anim({translateX: -320 * direction_coefficient +'px'}, 0.3, 'ease-out');
$old.anim({translateX: -320 * direction_coefficient + 'px'}, 0.3, 'ease-out', function() {
$old.remove();
//$('.page').css({"position": "static"});
});
它的工作,我结合这与我的身体的背景颜色设置为我的页面元素的一般颜色。 – flaiks