开发者

Jquery animation artifacts ie8 64bit

开发者 https://www.devze.com 2023-03-11 22:27 出处:网络
The following code generates some artifacts during animation in the ie8 64bit version. It seems to be working fine in the 32-bit version.

The following code generates some artifacts during animation in the ie8 64bit version. It seems to be working fine in the 32-bit version.

I made a little screen capture video to show what happens:

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

some ideas?

$(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)
            });
    });
});
#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%;
}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<di开发者_如何学运维v 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>

0

精彩评论

暂无评论...
验证码 换一张
取 消