テキストアニメーション(フェードイン;アニメーション(上、不透明度))を作成したところ、最後にテキストが約5px左に移動し、すぐに元の位置に戻りました。これは IE でのみ発生しました。他のすべての主要なブラウザーは正常に動作しました。
なぜそれが起こるのか、そしてそれを修正する方法について何か考えはありますか? 特にIE7の修正に興味があります。
ありがとう。
(追伸、ClearType の不具合を避けるためにフィルター属性を削除しました。)
HTML
<div id="logomarca">
<h1 id="marca">txt</h1>
<p id="spec">txt</p>
</div>
CSS
div#logomarca{
position:absolute;
left:50%;
top:0%;
margin-top:-83px;
margin-left:-83px;
width:160px;
height:45px;
}
p#spec{position:absolute; }
Javascript
$(document).ready(function(){
$("div#logomarca").show();
$("p#spec").fadeTo(0, 0.00,
function() { if($.browser.msie) { this.style.removeAttribute('filter'); }; }
); //hide() is not working with fadeIn
if($.browser.msie) {
$("p#spec").css({
"margin-top": "8px",
"margin-left": "-165px",
display: "none"
});
};
$("div#logomarca").animate({
top: "+=50%",
opacity: 1.00
}, 2500,
function() { if($.browser.msie) { this.style.removeAttribute('filter'); }; }
);
$(this).delay(3200,function(){
if($.browser.msie) { $("p#spec").show(); };
$("p#spec").fadeTo(0, 0.00 );
$("p#spec").animate({
opacity: 1.00,
top: "+=20"
}, 2500,
function() { if($.browser.msie) {
this.style.removeAttribute('filter');
}; }
);
$(this).delay(3500,function(){
$("p#spec").fadeTo(800, 0.0);
$(this).delay(650,function(){
$("h1#marca").fadeTo(1500, 0.0);
});
});
});
});