Jump to content

Snap Scrolling for just the homepage?

Recommended Posts

Site URL: https://www.shootiezproductions.com/

I am trying to incorporate snap scrolling / lock scrolling on solely the home page of my website but the code I have is affecting my entire site. How do I make it so solely the home page has snap scrolling. 

 

Here is my code that is injected into the home advanced page:

 <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>
<script>
        $(function() {
          $.scrollify({
            section : ".Index-page",
          });
        });
</script>

 

Thanks for the help in advance!

Link to comment
  • Replies 2
  • Views 518
  • Created
  • Last Reply

Top Posters In This Topic

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.