Jump to content

How to create a animated background for the site page?

Recommended Posts

  • Replies 1
  • Views 399
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

You can use this example code to Website Tools > Custom CSS. Replace color with your desired color

body {
 background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow-x: hidden;
}
.header-background-solid {
    background-color: transparent !important;
}
.section-background, .section-border, section {
  background-color: transparent !important;
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

 

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!)

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.