Forums

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

Home Forums CSS Fixed(ish) Wrapper?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241483
    Boxcar
    Participant

    Anyone know how to get an effect like in this link?

    https://www.churchmotiongraphics.com/?utm_source=tcp&utm_medium=banner&utm_content=post-footer&utm_campaign=cmg_may_new_motions

    The VCM10K (2nd) wrapper moves over the top wrapper (1st) as if the top wrapper were fixed, but the top wrapper also moves up a little.

    #241484
    Shikkediel
    Participant

    It’s a standard parallax effect, the red element getting a relatively different position based on the amount scrolled.

    #241511
    Boxcar
    Participant

    Don’t think that is correct.

    Setting the top to fixed prevents the image from moving, yet the top image moves a little.

    #241514
    Shikkediel
    Participant

    Bit of JavaScript and a translateY

    #241574
    Boxcar
    Participant

    The idea of the post is to learn out how to achieve the effect, not be told that it is possible. :)

    #241577
    Shikkediel
    Participant

    learn

    With a JavaScript parallax effect that’s based on the scroll position being calculated into a translateY which will change the positioning of the element.

    Or did I write that already and are you asking for code without supplying any yourself? Well, since it only takes a couple of minutes to create…

    Link

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