instead of relying on animationend we could rely on a custom event called 'action-showed' or similar