Mushroom Cards Card Mod Styling/Config Guide

Hi,
I’ve this code :

type: custom:vertical-stack-in-card
cards:
  - type: custom:mushroom-template-card
    icon_color: |
      {% if is_state(entity, 'on') %}
        orange
      {% else %}  
        white
      {% endif %}
    card_mod:
      style: |
        mushroom-shape-icon { animation: blink 2s linear infinite; }
        @keyframes blink { 50% {opacity: 0;} }
    entity: light.salon
    icon: mdi:lightbulb-on
    primary: Salon
    secondary: >
      {{ states("sensor.temperature_salon_temperature") | float | round }}°C |{{
      states("sensor.temperature_salon_humidity") | float | round }}% 💧|💡{{ states("light.salon")
      }} {% if is_state('light.salon', 'unavailable') %}
        Indisponible
      {% elif is_state('light.salon', 'off') %}
      {% else %}
        - {{ (states['light.salon'].attributes.brightness / 2.54) | round(0) }}% 
      {% endif %}
    layout: horizontal
    tap_action:
      action: toggle
    badge_icon: >
      {% if
      is_state('binary_sensor.magic_areas_presence_tracking_salon_area_state',
      'on') %}
        mdi:motion-sensor
      {% else %}  
        mdi:motion-sensor-off
      {% endif %}
    badge_color: >
      {% if
      is_state('binary_sensor.magic_areas_presence_tracking_salon_area_state',
      'on') %}
        orange
      {% else %}  
        grey
      {% endif %}
  - type: custom:mini-graph-card
    entities:
      - entity: sensor.temperature_salon_temperature
        name: Temperature
        color: lightblue
    height: 50
    hours_to_show: 24
    points_per_hour: 1
    line_width: 2
    font_size: 20
    animate: true
    show:
      name: false
      icon: false
      state: false
      legend: false
      fill: fade
  - type: custom:mushroom-chips-card
    card_mod:
      style:
        mushroom-template-chip:nth-child(1)$: |
          ha-state-icon {
            animation: spin 1s linear infinite;
           }
          @keyframes spin {
          from {transform: rotate(0deg);}
          to {transform: rotate(360deg);}
          }
    chips:
      - type: template
        entity: climate.radiateur_salon
        icon: mdi:radiator
        icon_color: |-
          {% if is_state(entity, 'on') %} 
           orange
          {% elif is_state(entity, 'off') %} 
           grey
          {% else %}
           red
          {% endif %}
        tap_action:
          action: more-info
        card_mod:
          style: |
            mushroom-shape-icon { animation: blink 2s linear infinite; }
            @keyframes blink { 50% {opacity: 0;} }
      - type: template
        entity: light.salon
        icon: mdi:lightbulb-group
        icon_color: |-
          {% if is_state(entity, 'on') %} 
           yellow
          {% elif is_state(entity, 'off') %} 
           grey
          {% else %}
           red
          {% endif %}
        tap_action:
          action: more-info
      - type: template
        entity: media_player.freebox_player_pop
        icon: mdi:television-box
        icon_color: |-
          {% if is_state(entity, 'on') %} 
           yellow
          {% elif is_state(entity, 'off') %} 
           grey
          {% else %}
           red
          {% endif %}
        tap_action:
          action: more-info
    alignment: end

And I try to animate icon (lightbulb, radiator, lightbulb-group and tv) depending on state, but none works.
I don’t know why.

Thanks.