added support for more event types that can trigger global animations