The Transaction component has custom event emitters for each animation life cycle. These can be used to attach custom functions and methods to be executed when the animations cycle is completed.
We can use these methods to execute data fetches after the page transaction completes or a button animation ends, thus chaining animations in a specific order that need to be executed one after another based on dynamic data.
In this recipe, we will learn how to use the custom event emitters of the Transaction component to execute custom methods.