1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

How can I fix download scale of section background independent of content

Discussion in 'Free Divi Community Forum' started by Jack Sappeow, May 24, 2021.

  1. Jack Sappeow

    Jack Sappeow New Member

    Hello Everyone, I have a section with a background is set to cover, and rows and text blocks inside that. I'd love to animate the background image to scale down when I scroll down to that section. Divi animations scale the whole div and its contents together so that doesn't work.

    I've written a CSS animation that makes the animation I want by targeting the .et_parallax_bg within the section, but the animation begins when the page loads rather than when the section comes into view.

    Scroll down to the third image down the page (blue, showing the sea) and refresh to see the animation which will probably have finished by the time you scroll down to it.

    I've seen lots of JS Scroll effects, but I'm not able to make them work, so I wondered if this could be done by using whatever hook Divi uses to animate content when it comes into view.

    Thanks in advance
     
    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You will definitely need custom JS code for that. It can't be done using Divi itself.

    But I could think of a workaround, but not sure if it will work well or not:
    - Create a new Row & make it to be position absolute to cover the whole section & set the background image in it & just set to animate the Row itself.