Squarespace includes a native parallax option, but if you’ve ever used it, you’ve probably noticed that background images still move, just more slowly than the rest of the content. If what you’re really after is a completely layered background effect, then this tutorial is for you.
We’ll look at how to create this true fixed background result in Squarespace 7.1 using CSS only. We’ll replace the section’s default image behavior, pin the background in place, and allow the content to scroll smoothly over it.
Plus, I'll share some tips along the way to help you keep your code clean and concise if you're planning of implementing the same effect for multiple sections on the site.
Let's get to it!
01 | CHAPTERS
00:00 - Overview of the fixed background effect, how it works and what to consider
01:16 - Setting up the images in the Custom Files window and using Anchor Links
02:29 - Looking for the image element we need to hide and the container we can use as our image anchor
04:42 - Hiding the native section image and bringing in the new one
05:51 - And now for the magic trick: background-attachment
06:15 - Repeating the same effect for the second section
07:46 - Tip on condensing the code to avoid unnecessary repetition
02 | BLOG POST + CODE
https://beatrizcaraballo.com/blog/fix...
03 | WORK WITH ME
If you’d rather not figure this out alone, there are a few ways I can help.
From ongoing guidance to full hands-on work, you can choose what fits your project best.
https://beatrizcaraballo.com/services
04 | SUPPORT + INQUIRIES
If you’re working on a project and need help, you can reach out here:
https://beatrizcaraballo.com/contact
I prioritize client inquiries. For quick questions, I may not always be able to respond directly, but I do use them to guide future content!
05 | RESOURCES
Some of the approaches and code I use in my videos come from my project coding toolkit – The Snippet Directory. It's now available inside the Club, alongside ongoing personalized support.
Explore access here:
https://beatrizcaraballo.com/snippet-...
06 | STAY IN THE LOOP
Receive weekly customization tutorials and troubleshooting tips, based on real-life project challenges.
https://beatrizcaraballo.com/notes
07 | NOTE
The code shown in this video is provided as is and it's not a one-size-fits-all solution. Your implementation may vary depending on your project and settings. There is no guarantee that the code, instructions, or method shown will work or be error-free.
08 | KEYWORDS
squarespace parallax background, parallax sections squarespace, parallax images squarespace, layered background squarespace, squarespace css tutorial, squarespace 7.1, custom css squarespace, squarespace web design, squarespace custom code, squarespace web development, squarespace design tutorial, squarespace site customization, squarespace code implementation, squarespace css tricks