Ability to use GIFs as background-image for CSS class?

Doesn't seem to be working in mine but perhaps GIFs are just not loadable as background images?

I fixed it — I had not kept the required background-size, -clip, and -repeat code.

hello @lolo

Would you share the code with us to help somebody meeting the same need ?
Cheers

1 Like

Yup! This is in the CSS file:

.class_name {
border: none;
--alpha-fill-on: none;
--alpha-fill-off: none;
--alpha-stroke: none;
--color-text: none;
--color-widget: none;
--color-fill: none;
--line-width: none;
background-image: url**('/Users/YourPathHere')**;
background-size: contain;
background-clip: border-box;
background-repeat: no-repeat;

gif file goes where "YourPathHere" is named.

Then in the CSS value of the button, enter

class: class_name

1 Like