Delete a TAB after the tabView scroll animation is complete

Hi, I would like to come back to this post.

Could you please provide a code example on how this works in lvgl 8?
I’m using lvgl for the ESP32 and would need a callback after the slide animation of the tab finished.
I tried my best, but most of the functions used in this example are no longer available in lvgl 8.

Thanks in advance!