Hmmm sorry, my bad, I’ve made a wrong assumption here. You won’t need card-mod for what you’re trying to achieve, but the extra-styles
property of button-card. See here. Works a charm like this for me. An example for a scrolling marquee in my button-card:
extra_styles: |
.marquee {
animation: marquee 20s linear infinite;
}
@keyframes marquee {
from {
transform: translateX(0%);
}
to {
transform: translateX(-50%);
}
}