[Resolved] disable parallax with media query

Home Forums Support [Resolved] disable parallax with media query

Home Forums Support disable parallax with media query

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #253003
    Paul

    Hi Tom

    I’m having the issue whereby the parallax effect is repeating the image in a section lower down my page. It’s fine for most screen resolutions but is happening before the mobile view is invoked (where you’ve disabled the parallax effect.) What code would I need to put in my media query to disable it a little bit sooner?

    Thanks in advance.

    Paul

    #253054
    Tom
    Lead Developer
    Lead Developer

    Hi Paul,

    You can try this – just adjust the media query:

    @media (max-width: 900px) {
        .generate-sections-container.enable-parallax {
            background-position: center top !important;
        }
    }
    #253280
    Paul

    Hi Tom

    That’s great – all working ๐Ÿ™‚
    Btw, I guess the specificity wasn’t strong enough when I added the CSS to my Simple CSS file as it only worked in Chrome. Once I added inline on the page, it worked in all other browsers too.

    As ever, thanks for your help and your great work.

    Cheers

    Paul

    #253320
    Tom
    Lead Developer
    Lead Developer

    That’s strange – browser shouldn’t matter. It might have been cached.

    Glad it’s working ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.