Jump to content

Auto-scroll to next section after some time

Go to solution Solved by ufotofu,

Recommended Posts

  • Replies 3
  • Views 973
  • Created
  • Last Reply

Top Posters In This Topic

  • 5 months later...
22 hours ago, grybitskaya said:

That's great. But where do you paste this code? It doesn't work in CSS. Thank you!

 

Add this to Settings > Developer Tools > Code Injection > Footer. Replace with your data-section-id

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  setTimeout(function(){
$(window).scrollTo('section[data-section-id="your-unique-id"]')}, 3000);
</script>

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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.