addEndListener
Add a custom transition end trigger. Use it when you need custom logic to decide when the transition has ended. Note: Timeouts are still used as a fallback if provided.
Parameters
{Function} done Call this when the transition has finished.