I’ve made it work @Horizon @iaditya_nanda
We have to use different Lottie components and make them make them visible and invisible on the click of the button instead of changing the source. Also , make the default state of the Lottie animation as invisible.