Relative Content

Tag Archive for flutterlottie

How to start different animations based on button clicks

Currently, I’m using five buttons to navigate from my homepage to the subpages. And here’s what I want to do: I have five animations of the same book. It’s always closed at the beginning but then opens different pages. So, depending on what button I click, I want to show the according animation before actually navigating to that page.
Once I return to the homepage, the animatin runs backwards and closes the book again.