search

Home  >  Q&A  >  body text

css3 - How to achieve the effect of each part of the page appearing as the scroll bar slides down?

I watched a website, and as the scroll bar slid down, every part of the page showed the effects when it was first loaded.
These effects will only reappear if I refresh them again. How is this done? Is it written in the load of jquery?
Similar to the homepage of this website
http://www.itxdl.cn/brands/?b...

漂亮男人漂亮男人2847 days ago1904

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-06-05 11:12:23

    The one above is wrong
    OK I looked at the source code.

    Look at this library!
    wow.jswow

    This is the correct answer. When you have time, you can look at the source code of wow. It shouldn't be difficult.

    reply
    0
  • 某草草

    某草草2017-06-05 11:12:23

    The principle is very simple, hang a time to monitor the scrolling time, determine the current scrollTop and the offsettop of each element to operate

    reply
    0
  • Cancelreply