Forums

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

Home Forums JavaScript [Solved] On screen triggered effect

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

    Hi!
    Here is the base. How to make script to add necessary class (for example, class .fade) when it’s seeing on screen? S.O.S.

    #186086
    Paulie_D
    Member

    It’s not clear what you are trying to do.

    Do you mean things only fade in when it scrolls into view…are you applying this to all elements or just some?

    #186088
    Romchick
    Participant

    Just for those which on screen. For example, many divs with .fbox class . And when it scrolls into view I want it to show. Other are still “in stand by” class.

    #186091
    Romchick
    Participant

    Oh. I did it! Free hugs! 8)

    But I want more. Can I make in this code the value alike :nth-of-style . For example transform: translateX(-100px) is for left <div class=fbox> and transform: translateX(100px) for the right one. So the blocks are moving like closing gates while scrolling.

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