imlucyelliott Posted July 2, 2021 Share Posted July 2, 2021 Site URL: https://lucyelliott.co.uk Hello! I'm trying to give one page (either a single blank page or an index containing sections - whichever is easier to do) on my site a scrolling gradient background as seen at https://locolove.com/ or https://www.wildernessfestival.com/2021-line-up/. Found various codes around the place but no luck getting them to work on my developer mode squarespace site, my actual site is V7 Brine family template. Any help appreciated! Beyondspace 1 Link to comment
Beyondspace Posted July 4, 2021 Share Posted July 4, 2021 On 7/2/2021 at 7:55 PM, imlucyelliott said: Site URL: https://lucyelliott.co.uk Hello! I'm trying to give one page (either a single blank page or an index containing sections - whichever is easier to do) on my site a scrolling gradient background as seen at https://locolove.com/ or https://www.wildernessfestival.com/2021-line-up/. Found various codes around the place but no luck getting them to work on my developer mode squarespace site, my actual site is V7 Brine family template. Any help appreciated! Try if that help, you can find the correct collection id and replace accordingly Chrome Web Store - Extensions (google.com) #collection-5f3f9568da33df0d062c9e80 .Index-page { background-color: transparent; } #collection-5f3f9568da33df0d062c9e80 .Index { background: #292b30; background: linear-gradient( -45deg , #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; -webkit-animation: gradient 15s ease infinite; animation: gradient 15s ease infinite; } @-webkit-keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } imlucyelliott 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
imlucyelliott Posted July 5, 2021 Author Share Posted July 5, 2021 You are an absolute genius @bangank36! This works perfectly, thanks for brightening my week! Beyondspace 1 Link to comment
imlucyelliott Posted July 6, 2021 Author Share Posted July 6, 2021 Just one question - this code works perfectly on my homepage, but no other page. I've tried changing the collection ID but that doesn't seem to do anything. Do I need to alter the code for other pages of my site? Beyondspace 1 Link to comment
tuanphan Posted July 7, 2021 Share Posted July 7, 2021 21 hours ago, imlucyelliott said: Just one question - this code works perfectly on my homepage, but no other page. I've tried changing the collection ID but that doesn't seem to do anything. Do I need to alter the code for other pages of my site? With other pages, try this code body .Main { background-color: transparent; } body { background: #292b30; background: linear-gradient( -45deg , #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; -webkit-animation: gradient 15s ease infinite; animation: gradient 15s ease infinite; } @-webkit-keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } mlkwebstudio, imlucyelliott and Beyondspace 2 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
juancastillo Posted June 1, 2022 Share Posted June 1, 2022 On 7/4/2021 at 10:53 AM, bangank36 said: Try if that help, you can find the correct collection id and replace accordingly Chrome Web Store - Extensions (google.com) #collection-5f3f9568da33df0d062c9e80 .Index-page { background-color: transparent; } #collection-5f3f9568da33df0d062c9e80 .Index { background: #292b30; background: linear-gradient( -45deg , #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; -webkit-animation: gradient 15s ease infinite; animation: gradient 15s ease infinite; } @-webkit-keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } Hey Legend, im trying to do exactly the same, but the code its not working, i changed the Id collection, but nothing, im with the new version of squarespace, do you think that can be the issue? thank you!! Link to comment
brigidc.campbell Posted November 8, 2022 Share Posted November 8, 2022 @tuanphan I added this code to one of my sites and it worked great until I upgraded to Fluid Engine. The code no longer works and when I go into my Circle Lab settings to opt-out of the Fluid Engine (in hopes to reverse this) the scrolling gradient still doesnt work. Any ideas? mlkwebstudio 1 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