Home  >  Q&A  >  body text

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

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

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

PHP中文网PHP中文网2718 days ago341

reply all(3)I'll reply

  • 迷茫

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

    By detecting scrollTop

    reply
    0
  • 巴扎黑

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

    Detect scrolltop and add the corresponding animation class

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 12:03:28

    You can refer to this: https://github.com/matthieua/WOW

    reply
    0
  • Cancelreply