File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/landing/install/js/landing/main/src/internal/on-animation-end.js
Back
import {Event} from 'main.core'; export default function onAnimationEnd(element: HTMLElement, animationName: string) { return new Promise(((resolve) => { const onAnimationEndListener = (event) => { if (!animationName || (event.animationName === animationName)) { resolve(event); Event.bind(element, 'animationend', onAnimationEndListener); } }; Event.bind(element, 'animationend', onAnimationEndListener); })); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings