Jump to content

Snap Scrolling CSS

Recommended Posts

I am currently building a page which uses the relatively new CSS feature: snap scroll. I have defined a container for my sections and set "scroll-snap-type: y mandatory" and for each section a "scroll-snap-align: start". I've tested this in an isolated example (ie an editor in my system) and it works but does not work in squarespace. Is this feature not supported yet?

Edited by ppsu
Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

Hey guys. This worked perfectly!

Put this on Header.

Settings -> Advanced -> Code injection (Header)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/scrollify/1.0.19/jquery.scrollify.min.js"></script>
        $(function() {
            section : ".Index-page",


In case you just want one index page to have the snap effect just put this on the INDEX page ADVANCED (header).


Link to comment
  • 1 year later...
On 5/16/2021 at 12:00 AM, tpassow said:

do you know if this will work for snapping to section id's?

Try replace







Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.