Squarestuff

Squarestuff

Share this post

Squarestuff
Squarestuff
How to Add Locomotive Scroll (SMOOTH SCROLL) To Squarespace
Copy link
Facebook
Email
Notes
More
User's avatar
Discover more from Squarestuff
Web development, motion graphics, tech and all kind of other stuff!
Already have an account? Sign in

How to Add Locomotive Scroll (SMOOTH SCROLL) To Squarespace

Carl Johnson's avatar
Carl Johnson
Nov 24, 2022

Share this post

Squarestuff
Squarestuff
How to Add Locomotive Scroll (SMOOTH SCROLL) To Squarespace
Copy link
Facebook
Email
Notes
More
Share

If you’re unfamiliar with locomotive scrolling it’s a cool effect where, when you stop scrolling, the page briefly carries on and then slowly comes to a stop.

It’s difficult to explain when you’re as sparse with words as I am, so here’s a demo.

It’s a nice effect and definitely one that has become more and more popular over the last few years.

So how do you add this effect to your Squarespace website? Well, luckily it’s really simple with a few lines of code.

So first of all you’re going to need to take a copy of this code 👇

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.5.4/dist/locomotive-scroll.css">

<script src="https://cdn.jsdelivr.net/npm/locomotive-scroll@4.1.1/dist/locomotive-scroll.min.js"></script>

<script>
const locoScroll = new LocomotiveScroll({
  el: document.querySelector("body"),
  smooth: true,
  multiplier: 1.0,
}); 
setTimeout(() => {  
	locoScroll.update();
}, 2000);
</script>

Then head on over to your Advanced Code Injection (Settings > Advanced > Code Injection), paste the code into the footer and hit ‘Save’.

Voila! You’ve now got locomotive scroll installed on your website.

IMPLICATIONS OF USING LOCOMOTIVE SCROLL

  • If you're on Squarespace version 7 and you're using parallax scrolling, this can cause section background images not to load, so you would need to disable parallax in the Style panel.

  • If you’re using any of Squarespace’s built in animations in version 7.1 this will stop page items loading properly, so you’ll need to disable any animations for this to work.

  • If you have fixed header enabled on version 7.1 this will make the header become ...unfixed. Thanks to BRONZE AVERY for pointing that out over on YouTube.

  • Also to note that this doesn't work with the Wells template.

This was inspired by a Timothy Ricks video explaining how to do the same in Webflow.

Note: this is set to only work on desktop, after some issues were found on mobile.


Show support

Buy me a coffee

Share

Share this post

Squarestuff
Squarestuff
How to Add Locomotive Scroll (SMOOTH SCROLL) To Squarespace
Copy link
Facebook
Email
Notes
More
Share

Discussion about this post

User's avatar
My Go-To Resources
I often get asked what I’m using for a certain things.
Feb 24, 2023 • 
Carl Johnson

Share this post

Squarestuff
Squarestuff
My Go-To Resources
Copy link
Facebook
Email
Notes
More
How to show mobile menu on desktop in Squarespace 7.1
One of the biggest things missing from Squarespace 7.1 is the mobile breakpoint option.
Mar 16, 2023 • 
Carl Johnson

Share this post

Squarestuff
Squarestuff
How to show mobile menu on desktop in Squarespace 7.1
Copy link
Facebook
Email
Notes
More
3
CSS Glassmorphism Effect in Squarespace
If you've come over from YouTube to grab the code for this video, then sorry.
Jan 2, 2023 • 
Carl Johnson

Share this post

Squarestuff
Squarestuff
CSS Glassmorphism Effect in Squarespace
Copy link
Facebook
Email
Notes
More

Ready for more?

© 2025 Carl Johnson
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.