UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

29 lines (28 loc) • 661 B
/*! * FilePond v5.0.2 * Copyright (c) 2017-2026 Pqina B.V. * Released under the MIT License * https://filepond.com */ import { addListener as a } from "../../utils/dom.js"; import { isFunction as p } from "../../utils/test.js"; function m(c) { function e(n) { const { type: r, target: o, propertyName: s } = n, t = c[s]; if (!o || !t) return; const i = getComputedStyle(o).getPropertyValue(s); p(t) && t(i); const u = r.substring(10); p(t[u]) && t[u](i); } return (n) => { const r = a(n, "transitionstart", e), o = a(n, "transitionend", e); return () => { r(), o(); }; }; } export { m as transitions };