Forums

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

Home Forums JavaScript is this scroll effect doable with less JS?!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #196094
    mp.w
    Participant

    hey,

    so i am trying to find out how to accomplish the scroll effect i want to use for my new webpage…

    i have it working but its quite some javascript/jquery for such a small effect

    this is what i got:
    http://codepen.io/mp/pen/OPvPEN

    is there a way to do this with mostly css or at least reduce the js?

    i hope this is the right forum (was not sure whether to post here or in the ccs forum)

    #196104
    Paulie_D
    Member

    I’m no JS/JQ expert but you should be able to reduce all those section variables just one that applies to all sections…that would cuts out all those if/else statements.

    #196189
    mp.w
    Participant

    im not sure how to do that since all the conditions are different…

    also i was primarily looking for a way to do this with more css and less js

    i was reading up on parallax because i will try to have my content inside the sections use that but i dont think this works with the sections themselves

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