Home  >  Q&A  >  body text

javascript - Scroll to the specified height and start to play animations in turn. This is how the QQPC official website does it. Which open source library should be used to make it more convenient?

http://im.qq.com/pcqq/

Let’s study it

大家讲道理大家讲道理2713 days ago549

reply all(6)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:23:45

    wow.js, you can take a look, it needs to be used with animation.css.
    https://github.com/matthieua/WOW
    https://daneden.github.io/ani...

    oppo’s example: http://www.dowebok.com/demo/1...
    In addition, you can also write it yourself.

    reply
    0
  • PHPz

    PHPz2017-05-16 13:23:45

    Written by myself, monitor the scroll bar when it reaches the scroll height, and give a class to the elements that need animation. This class is a css animation

    reply
    0
  • 为情所困

    为情所困2017-05-16 13:23:45

    You can write it directly with CSS3, combined with JS

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:23:45

    The correct answer upstairs can be achieved with WOW.js. When reaching the current height, an animation class will be added

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:23:45

    scrollReveal.js This is what I use. http://dreamwq.com/home/ You can feel it

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:23:45

    Written by yourself is scrollTop

    reply
    0
  • Cancelreply