• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Parallax Pro: adding images / sections (continued)

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Parallax Pro: adding images / sections (continued)

This topic is: not resolved

Tagged: background image, offset, parallax

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 11 months ago by MarkP.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 8, 2014 at 12:21 pm #99082
    Tom
    Participant

    This is a follow-up post to the thread (which seems to have been auto-closed, or perhaps mod-closed?)


    @MarkP
    asked:

    is there a way to modify the white background color that is visible behind the scrolling images? The white shows at the bottom of images as they scroll to the top, like a page behind the images?

    I hadn't taken the time to explore this mod more closely and find the same issue Mark has discovered: horizontal bands of the background showing through beneath the new image sections. These bands relate to the fixed or 'sticky' menu.

    To eliminate the bands a small adjustment to the parallax javascript is required. This was tested using five parallax sections and is not affected by being logged in (different screen top starting point) or screen width (changes from sticky menu to mobile menu). For each background section in parallax.js, reduce the background scroll value by 70 (pixels):

    // Enable parallax effect
    backgroundscroll = scrollwindow - $(".home-section-2").offset().top;
    $(".home-section-2").css("backgroundPosition", "0px " + -(backgroundscroll/6)-70 + "px");

    For the original code setup, see the original thread noted above.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    April 11, 2014 at 3:31 pm #99739
    MarkP
    Member
    This reply has been marked as private.
    April 11, 2014 at 4:35 pm #99747
    MarkP
    Member
    This reply has been marked as private.
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble