Support » Theme: Twenty Twenty » How to enable parallax effect in Twenty Twenty

  • Is the Twenty Twenty able to do a parallax for background images? If so, what resource should I look towards in learning how to enable it or create it for this specific theme?

    I pretty much want my background image to scroll slower than the text in front of it, when I scroll up or down.


Viewing 6 replies - 1 through 6 (of 6 total)
  • Depending upon which background image you’re referring to it does somewhat. The Cover Template has this built in.

    Though with some CSS parallax can be added almost anywhere, you typically are just looking for

    background-attachment: fixed;

    Though it depends on how the image is inserted as well. Do you have a live site with background images already that you’re wanting to accomplish this on?

    Thread Starter klewis


    Jarret thank you so much for the help! I want to mimic this site –

    in how the background tiles slightly move slower than the text when you scroll up and down. Can I duplicate this process with the all new Twenty Twenty theme? If the answer is yes, then where should I start?

    I am very experienced with CSS so hit me with whatever.


    • This reply was modified 1 year, 3 months ago by klewis.

    Hmm, not quite sure what they are using there, something with JS/jQuery though. If you use Chrome, you can right click and Inspect the header background image. Look for the <div class="parallax-image"> element in the inspector and then scroll down. You’ll see that something is applying inline styling to the position of that element to get that effect.

    Maybe somebody else will jump in here and know what it is.

    Thread Starter klewis


    is there a way to give the same effect in Twenty Twenty? I don’t mind if the process is completly different from the link i posted.


    Don’t know if it might be useful, but there’s this old and excellent tutorial on the parallax effect:

    Apparently, though, this technique is broken in iOS 13:

    Perhaps you could give this plugin a shot:

    Any plugin that creates a Gutenberg block that has parallax capabilities should, in theory, work fine with Twenty Twenty.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to enable parallax effect in Twenty Twenty’ is closed to new replies.