Event Handler after screen transition animation

I have a slide in animation from one screen to another that runs for 500ms. I also have a Screen_Loaded function handler for the second screen. The handler gets called before the transition animation completes, so the screen freezes halfway over waiting for the loaded code to complete.

Is there a way to have the function call after the animation is complete instead of what appears to be they both get called at the sameish time?


It’s handled in LVGL like this:

So in when the animation is ready scr_anim_ready is called and it fires the LV_EVENT_SCREEN_LOADED event.

So it should wok as you have described. Could you send your project so that we can examine it?