Guest Posted October 2, 2020 Posted October 2, 2020 Site URL: https://www.orcasoundproject.com/ Hello, How can I add parallax scrolling on Squarespace 7.1 on specific images? I have tried different codes but none of them seem to be working or they have minimal impact, you can barely notice it. I would like to have the effect of totally scrolling through it like in this example on the header image: https://www.recyclerebuild.org/spotlight Thanks!
SabineM Posted October 4, 2020 Posted October 4, 2020 @cloudier hi, try this: You have to put this code little code into the custom CSS: box .sqs-video-background { position fixed; top:0; } this may help. good luck 😉
Guest Posted October 5, 2020 Posted October 5, 2020 Hello, Thanks for your help but the above seems not to be working, it says it has a syntax error for some reason. The code injection I used for the parallax is the following: <script src="https://cdn.jsdelivr.net/npm/simple-parallax-js@5.4.1/dist/simpleParallax.min.js"></script> <script> var images = document.querySelectorAll('.section-background img'); new simpleParallax(images, { scale: 1.2, delay: 1, }); </script> <style> .simpleParallax { height: 100%; } </style> Thanks
tuanphan Posted October 8, 2020 Posted October 8, 2020 Did you add to Custom CSS? The code should be in Home > Settings > Advanced > Code Injection 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!)
Guest Posted October 8, 2020 Posted October 8, 2020 Hi tuanphan, it is in code injection indeed. I just want the parallax to be more dramatic like in https://www.recyclerebuild.org/spotlight top banner. If you go to my website https://www.orcasoundproject.com/ you can barely feel the parallax and when the effect is increased in the code it just zooms in or has a weird delayed effect. I would like for the next section to go over completely of the image that is in the previous section 'behind'. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.