Jquery артефакты анимации ie8 64bit - PullRequest
0 голосов
/ 07 июня 2011

Следующий код генерирует некоторые артефакты во время анимации в ie8 64-битной версии. Кажется, работает нормально в 32-битной версии.

Я сделал небольшое видео, чтобы показать, что происходит:

http://www.youtube.com/watch?v=MKeeWv5DqK0

некоторые идеи?

Index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="style.css" />
<title>Untitled Document</title>
</head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">

$(document).ready(function() {
        $('.product').each(function() {
                //$(this).children().animate({'top' : '150px', 'left' : '300px'}, 500);
                $(this).hover(
                    function(){$(this).children().animate({'left' : '210px'}, {queue: false}, 500)},
                    function(){$(this).children().animate({'left' : '0px'},{queue: false}, 500)}                    );
          });

});



</script>



<body>
<div id="wrapper">
    <div class="product"><div class="product_cover"></div></div>
    <div class="product"><div class="product_cover"></div></div>
    <div class="product"><div class="product_cover"></div></div>
    <div class="product"><div class="product_cover"></div></div>
    <div class="product"><div class="product_cover"></div></div>
    <div class="product"><div class="product_cover"></div></div>

</div>
</body>
</html>

style.css

#wrapper
{   
    width:800px;
    height:420px;
    padding:30px;
    border:1px solid #999;
    background-color:#ddd;
    margin:0 auto;
    margin-top:100px;
}

.product
{
    position:relative;
    width:206px;
    height:150px;
    background-color:#0FC;
    float:left;
    margin:30px;
}

.product_cover
{
    position:absolute;
    top:0;
    left:0;
    background-color:#F63;
    width:100%;
    height:100%;
}
...