Create Smooth Scroll Anchor Links with SquareKicker
With SquareKicker you can create a link that scrolls to any section or page on your site without using a single line of code.
Let's create this
First we need to add an Anchor Link to the Squarespace section we what to scroll to.
- Select the Squarespace Section you want the Anchor Link to connect to.
- Click the SquareKicker icon.
- Open the Advanced tab.
- Select the Anchor Link menu option.
- Create a Section ID by entering a text of your choice into the Section ID field.
- Save these changes by clicking Apply.
Now we can set up a link to trigger the Anchor Link
- Select the element you want to set as a trigger. This can be anything with a link applied (button, text, image, navigation, etc)
- Click the Squarespace edit icon (pencil).
- Under LINK enter the text you enter in the Section ID field preceded by #. For example, if your Section ID is the word 'button', then you will enter #button in the LINK field.
- If your link is on a different page from your Anchor Link Section, you will need add the page url proceeding the Section ID. For Example: if the page of your section your linking to has the URL of '/about' then your full link will be '/about#button'.
We can now change the speed and offset of the scrolling animation.
- Click on the the SK Menu (SK icon at the top right of the screen).
- Select Site.
- Open the Advanced tab
- Enter the Smooth Scroll menu option.
- Click the Enable toggle.
- Adjust the speed. You can do this with the slider or my clicking the number filed and entering your own number.
- Adjust the Offset. The default is 0px. This is the position from the top of the screen the section will scroll to.
- Save these changes by clicking Apply.