Perspective: Apply style class scrolling (to Left) text when text is 'wrapped'

Good day All,

I’m working on a scrolling text animation where the animation is triggered when the text wraps (i.e., when the length of the text exceeds the container’s width).

My current workaround is to check the length of the string and apply the scrolling animation based on that. However, this doesn’t work well when the view is expanded or retracted, for example.

Is it possible in Perspective to detect if the text is actually wrapped? I haven’t been able to find any documentation on this.

Thanks in advance!

This is the CSS code for reference. This is just a basic scroll text animation

	.psc-proj-styles\/rockwell-open-library\/popups\/general\/text-scroll {
		position: absolute;
		whiteSpace: nowrap;
		overflow: hidden;
		text-wrap: nowrap;
	      /* Start the text outside the container */
	     animation: scroll-left 10s linear infinite;
    	}
	@keyframes scroll-left {
	    0% {
	        transform: translateX(50%);
	    }
	    100% {
	        transform: translateX(-50%);
	    }
		}