Website Building » Squarespace » How Do I Add a Parallax Scrolling in Squarespace?

How Do I Add a Parallax Scrolling in Squarespace?

Last updated on December 11, 2022 @ 3:36 am

Adding a parallax scrolling effect to your Squarespace website is a great way to add some visual interest and depth to your pages. Parallax scrolling is when the background image of a page moves at a different speed to the foreground content, creating an illusion of depth.

PRO TIP: Squarespace does not support parallax scrolling. Any code or tutorials that claim to add parallax scrolling to Squarespace will not work and may cause your site to break.

To add a parallax scrolling effect to your Squarespace website, you’ll need to use the code block feature. Here’s how:

    1. Log in to your Squarespace account and go to the page you want to add the parallax effect to.

    2. In the page editor, click on the ‘+’ icon and select ‘Code Block’ from the menu.

    3. Paste the following code into the code block:

    < script >
    $(document).ready(function(){
    $(‘#parallax’).parallax(“50%”, 0.3);
    });
    < /script >

    4. Replace ‘#parallax’ with the ID of the element you want to apply the parallax effect to. This could be an image, a video, or even a section of text.
    5. Adjust the second parameter (‘50%’) to change how much of the element is visible on screen before it starts scrolling.
    6. Save your changes and preview your page to see the parallax effect in action!

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.