Webkit CSS动画跳跃问题

use*_*662 5 css jquery animation css3

我有一个动画设置有两个旋转盒,较小的盒子在一个较大的盒子里.它使用JS为动画,暂停和恢复添加类.

在Webkit中,我遇到的问题是在mouseout上,它会添加一个暂停类并暂停CSS动画,动画会跳回到它的初始状态.有时它跳起来就像动画从未停顿一样.我已经尝试了动画填充并添加到最终动画状态.我搜索和尝试的所有内容似乎都没有帮助.

任何帮助表示赞赏.

整个代码在这里 http://jsfiddle.net/qQcFy/105/

CSS动画代码

@-webkit-keyframes circle {
    from {
        -webkit-transform:rotate(0deg);
    }
    to {
        -webkit-transform:rotate(360deg);
    }
}

@-webkit-keyframes inner-circle {
    from {
        -webkit-transform:rotate(0deg);
    }
    to {
        -webkit-transform:rotate(-360deg);
    }
}

#rotator.is-rotating {
    -webkit-transform:rotate(360deg);
    -webkit-animation: circle 55s linear infinite;
    -webkit-animation-fill-mode: forwards;
}

#rotator.is-rotating.is-paused {
    -webkit-animation-play-state: paused;
}

#rotator .box.is-rotating {
    -webkit-transform:rotate(-360deg);
    -webkit-animation: inner-circle 55s linear infinite;
    -webkit-animation-fill-mode: backwards;
}

#rotator .box.is-rotating.is-paused {
    -webkit-animation-play-state: paused;
}

.box {
    display: inline-block;
    overflow: hidden;
    font-size: 12px;
    border:1px solid black;
    background-color:#ccc;
    text-align:center;
}

.box-small {
    margin: 5px auto 0;
    display: block !important;
    height: 46px;
    width: 47px;
}
Run Code Online (Sandbox Code Playgroud)

web*_*ogs 0

添加...

-webkit-backface-visibility: hidden;
-webkit-perspective: 1000;
Run Code Online (Sandbox Code Playgroud)

...您正在过渡的任何事物。应该根据这里的文档工作......