#Better map panel

1 messages · Page 1 of 1 (latest)

stone shale
#

Hello, I'm trying to find something akin to the picture-elements card which accepts SVG files as an image file. Does such a thing exist?

humble stratus
#

The custom:button-card can handle .SVGs. With the right styling, you can get it to pretty much look however you want. ```yaml
type: custom:button-card
entity_picture: '\local\rainy-1.svg'
show_entity_picture: true

#

It can also handle inline SVGs (where the SVG code is included within the custom:button-card's YAML). This card was something I was playing with. Here, neither an icon or entity_picture is displayed. It is actually a custom_field (which I aptly named icon) shown and it contains the SVG code. Animation is provided by keyframes. (The code has a couple of different animation but only alert is hard-coded to be shown.) The only bad thing is that inline SVGs cannot process variables.