Heim  >  Fragen und Antworten  >  Hauptteil

html5 - html的css样式中页面滚动到指定位置时候,animation才触发,如何写?求大神

html的css样式中页面滚动到指定位置时候,animation才触发,如何写?
现在我的animation当页面加载时候,就开始执行动画了,等我页面滚到指定位置时候,动画老早时间过去了。。。

在angular中使用?
控制台跳出错误:

PHP中文网PHP中文网2718 Tage vor338

Antworte allen(3)Ich werde antworten

  • 迷茫

    迷茫2017-04-17 12:03:28

    通过检测scrollTop

    Antwort
    0
  • 巴扎黑

    巴扎黑2017-04-17 12:03:28

    检测scrolltop 然后加上对应animation的 class

    Antwort
    0
  • ringa_lee

    ringa_lee2017-04-17 12:03:28

    可以参考这个:https://github.com/matthieua/WOW

    Antwort
    0
  • StornierenAntwort