Javascript 在移动chrome中设置滚动闪烁动画

Javascript 在移动chrome中设置滚动闪烁动画,javascript,css,scroll,jquery-animate,mobile-chrome,Javascript,Css,Scroll,Jquery Animate,Mobile Chrome,我正在尝试在我的网站上添加动画。我用过,也用过。我的javascript是 <script> ScrollOut({ targets: '.aos', onShown: function(el) { // remove the class el.classList.remove("animated", "fadeIn"); // force reflow void el.offsetWidth; // re-add the ani

我正在尝试在我的网站上添加动画。我用过,也用过。我的javascript是

<script>
 ScrollOut({
  targets: '.aos',
  onShown: function(el) {
    // remove the class
    el.classList.remove("animated", "fadeIn");

    // force reflow
    void el.offsetWidth;

    // re-add the animated cl
    el.classList.add("animated", "fadeIn");
  }
});
</script>

滚动({
目标:'.aos',
onShown:功能(el){
//删除该类
el.classList.remove(“动画”、“fadeIn”);
//强制回流
void el.offsetWidth;
//重新添加动画cl
添加(“动画”、“fadeIn”);
}
});
我在第页中使用了

然后它也适用于所有dektop浏览器和移动firefox,但它只在移动chrome上显示动画前闪烁。
我试图将
style=“-webkit transform:translate3d(0,0,0);”
添加到div元素,但不起作用。

任何修复请…任何修复请。。。