Trim path lottie animation

Hello, I need help please. I would like to create a trim path lottie animation like that ( I created 4 different animation for each screen size in after effects and rendered it in json. It was working perfectly in webflow preview mode but in chrome it’s not responsive my trim path go across the text when I decrease the width of the screen. Maybe I didn’t create my Lottie properly or I missed some steps.
Maybe someone could help me with this?
Thank you