ppsu Posted March 16, 2020 Share Posted March 16, 2020 (edited) 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 March 16, 2020 by ppsu Link to comment
humxahafeex Posted March 16, 2020 Share Posted March 16, 2020 Hi @ppsu, Please do share the code so I can look in to it and assist you futher with it 🙂 Link to comment
lumaoquendo Posted April 9, 2020 Share Posted April 9, 2020 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><script>    $(function() {     $.scrollify({      section : ".Index-page",     });    });</script>  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
tpassow Posted May 15, 2021 Share Posted May 15, 2021 do you know if this will work for snapping to section id's? Link to comment
tuanphan Posted May 18, 2021 Share Posted May 18, 2021 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 Quote .Index-page with Quote .page-section  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
Flavia Posted July 19, 2021 Share Posted July 19, 2021 Does anyone know why this isnt working with my markdown? as soon as i add in an accordion menu, the snap-scroll no longer works. im following this method  https://stnsvn.com/blog/how-to-add-an-accordion-to-squarespace Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment