added support for custom elements triggering global animations