Jump to content

Help with background code

Recommended Posts

Hi there,

I am super new to this but I want to add an animated gradient background to my landing page. Can anyone show me where to add this code that is generated from Animista? I have tried adding it to custom css but it doesn't work. Thank you!

Screenshot 2024-08-21 at 11.38.28 AM.png

Screenshot 2024-08-21 at 11.38.08 AM.png

Screenshot 2024-08-21 at 11.42.43 AM.jpeg

Link to comment
  • Replies 7
  • Views 324
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi Tuanphan, thanks for responding. I have given up with that idea and gone with something else - just a fixed background image  - I am trying however to get my site header to stay transparent when I scroll down my site so that the text in the header is visible on all page sections. I have tried various codes that I have come across online but nothing seems to work for me. Do you have any ideas? thanks!

The latest one I tried was this, to no avail...

header.Header.Header--top {
    position: fixed;
    background-color: transparent !important;
}

 

 

 

 

 

Link to comment

@Newbie2 Hi! First enable the ‘Fixed Position’ option for your header in the Squarespace editor by navigating to Edit > Edit Site Header > Edit Design > Fixed Position, and toggle it on. See the screenshot for reference.

After that, you can add this code under Website > Pages > Website Tools > Custom CSS.

.header.shrink {
    background: transparent !important;
}

 

FixedHeader.png.e480af93eb4317c6bb040129a0d54e07.png

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.