Jump to content

How can I make the cards around the image an animated gradient colour?

Recommended Posts

Hi copied and saved the list section from my portfolio, which is  a list with clickable images ( https://www.brainforestcreative.com/portfolio)

I now want to add code in order to make the cards an animated gradient version of the colours of my site. I have this already but it does not seem to be working, as I have had to make some edits when copying the section from my portfolio page

.user-items-list-item-container[data-section-id="643b0332cf62e66cb03c9ca9"] li.list-item {
    background: linear-gradient(-45deg,#53d6ff,#666be1,#e45372,#f07c63);
    background-size: 400% !important;
    -webkit-animation: Gradient 10s ease infinite !important;
    -moz-animation: Gradient 10s ease infinite !important;
    animation: Gradient 10s ease infinite !important;
}

See image for the colour scheme they should be (animated)

Any advice, do I need to add more code?

 

Thanks

 

Alex

 

Screenshot 2023-09-26 202158.jpg

Edited by Immortal_Explorer
Link to comment
  • Immortal_Explorer changed the title to How can I make the cards around the image an animated gradient colour?
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

This is code for all 4 lists

body#collection-643afedc7572ef34f045bbf2 .user-items-list-item-container li {
    background: linear-gradient(-45deg,#53d6ff,#666be1,#e45372,#f07c63);
    background-size: 400% !important;
    -webkit-animation: Gradient 10s ease infinite !important;
    -moz-animation: Gradient 10s ease infinite !important;
    animation: Gradient 10s ease infinite !important;
    padding-top: 20px;
}

 

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

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.