🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-06 21:14:58 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
plugins
/
blocksy-companion
/
static
/
js
/
helpers
📍 /home/eliteewa/public_html/wp-content/plugins/blocksy-companion/static/js/helpers
🔄 Refresh
✏️
Editing: when-transition-ends.js
Writable
export function whenTransitionEnds(el, cb) { if (!parseFloat(getComputedStyle(el).transitionDuration)) { cb() return } const end = () => { el.removeEventListener('transitionend', onEnd) cb() } const onEnd = (e) => { // Very important check. // // Sometimes transitionend event is propagated from children to parent // and the children transition might be shorter than the parent's one // and thus the parent's transitionend event is triggered too early. if (e.target === el) { end() } } el.addEventListener('transitionend', onEnd) }
💾 Save Changes
❌ Cancel