if i apply it to the outer element it works, but who wants a complete map that rotates. it should only rotate the icon. where is my thinking error. have never dealt with animation in home assitant before. am grateful for any help.
type: custom:mushroom-template-card
primary: Heizung
secondary: ''
icon: mdi:fan
icon_color: blue
layout: vertical
tap_action:
action: navigate
navigation_path: heizprofile
card_mod:
style: |
@keyframes rotation {
0% {transform: rotate(0deg);}
100% {transform: rotate(360deg);}
}
ha-icon {
animation: rotation 3s linear infinite;
}