Use lottie animation for swiching between screens

Hi,
How can i use lottie animation component for switching between screens?. I have 2 screens and both of them contain a lot of components and switching between them taking a lot of time. i tried every way mentioned in the kodular community and none of them seemed to work as my expectation. So i want to know can i use lottie animation for this purpose?, if so, how can i do it?