Any way to have a crawl if a text is too long?

Hi,

Is there any way to get text or a templated state label to crawl depending on how long the input is? I know there is a way to crawl text with marquee, but this will crawl all the time. Should i use conditions then of is there a workaround for this?

I want to use this for my sonos media player in a picture elements card for showing title, artist and album. I have a dedicated block for this, but if the input is too long it wil go out of the box. (Something I will normally do, but not so handy for this matter) So if the text go out of the box it need to crawl, if it suits it just need to stand.

This is my first post. If I do anything wrong, please tell me.