Jump to content

Footer gradient animation woes

Recommended Posts

Posted

Hi there,

I am recoding my website after looking all my code. I was able to code this footer months ago but it is not working for me now. I am not sure if I am targeting this the correct way. I don't remember what I did I think it was the code below:

 

.footer {

    background: linear-gradient(90deg, #fe9c37, #da6026, #114155, #3b97b6, #693237);

    background-size: 1000% 1000%;

 

    -webkit-animation: AnimationName 30s ease infinite;

    -moz-animation: AnimationName 30s ease infinite;

    animation: AnimationName 30s ease infinite;

}

 

@-webkit-keyframes AnimationName {

    0%{background-position:0% 50%}

    50%{background-position:100% 50%}

    100%{background-position:0% 50%}

}

@-moz-keyframes AnimationName {

    0%{background-position:0% 50%}

    50%{background-position:100% 50%}

    100%{background-position:0% 50%}

}

@keyframes AnimationName {

    0%{background-position:0% 50%}

    50%{background-position:100% 50%}

    100%{background-position:0% 50%}

}

https://duck-sheep-gyj3.squarespace.com/ /SD$$$2023

  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

tried this as well-


.footer {
  background-image: linear-gradient(89deg, #fe9c37, #da6026, #114155, #3b97b6, #693237);
  background-size: 1000% 1000%;

  animation: AnimationName 30s linear infinite;
}

@keyframes AnimationName {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
 

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.