I want to run an animation that will run the text, in case the text slides out of the div, well, what is the easiest way to check if the displayed text will slide out of the div?
Thanks.
I want to run an animation that will run the text, in case the text slides out of the div, well, what is the easiest way to check if the displayed text will slide out of the div?
Thanks.
Try putting your text into an inner element (
div
,p
,h1
, …) and then compare its width to the width of the container.