LosDosUno Posted July 24, 2023 Share Posted July 24, 2023 (edited) Hi everyone! I'm having trouble with the footer section of my homepage regarding scroll snapping. I used code written in another post in this forum (https://forum.squarespace.com/topic/171837-how-to-do-snap-scrolling-for-squarespace-71/) <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 : ".page-section", }); }); </script>) The snapping works great and every page is full sized, however, the footer also acquires the characteristics of the other sections and is locked to full screen, I can't reduce its size. I need to have full screen sections that snap but maintain the footer narrow. Can anyone help me? Edited July 24, 2023 by LosDosUno Link to comment
tuanphan Posted July 26, 2023 Share Posted July 26, 2023 Try change to this <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 : "#page .page-section", }); }); </script>) LosDosUno 1 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
LosDosUno Posted July 28, 2023 Author Share Posted July 28, 2023 (edited) On 7/25/2023 at 7:58 PM, tuanphan said: Try change to this <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 : "#page .page-section", }); }); </script>) Should I replace de # in "#page .page-section" with the number of the sections on which I want to apply the snap scroll or just leave it as is? Also, once I uploaded your code, the small sand-colored bar appeared atop my header and I can't seem to take it out. Edited July 28, 2023 by LosDosUno Link to comment
tuanphan Posted July 29, 2023 Share Posted July 29, 2023 # in the code is ID, if you edit or remove it, the code won't run. 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment