Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Help to Achieve the Effect

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #238364
    De1an
    Participant

    I came across this site: http://satanic-revolution.com/ And I liked the loading (fading in and out) LI lines under the “THE SEVEN FUNDAMENTAL TENETS” as you scroll… Can you help me achieve the effect?

    #238366
    Shikkediel
    Participant

    Should be a matter of a scroll event listener – here’s something similar :

    Pen

    Easiest to do with jQuery…

    Edit – actually, pure JS getBoundingClientRect() is quite suitable for this to determine the position of the elements relative to the screen.

    #238367
    De1an
    Participant

    Thank you!

    #238368
    Shikkediel
    Participant

    No problem, it should be even less code than the example because that also includes anchor scrolling by clicking the options. If you’d create a demo with the basic HTML markup, I wouldn’t mind writing a few lines.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.