--- tags: zeta-dom --- # CSS effects One can get notifies when CSS transitions or animations finish. Here CSS transitions or animations is triggered by adding a `className` to an element. Transitions or animations on the element and all its descendants will be listened and be waited for. ```typescript runCSSAnimation(element, className, function () { console.log('Animation finished'); }); // or alternatively use the promise returned var promise = runCSSAnimation(element, className); ```