@sandlada/vue-mdc
Version:

25 lines (24 loc) • 581 B
JavaScript
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*
* @link https://github.com/material-components/material-web/blob/main/internal/motion/animation.ts
*/
function createAnimationSignal() {
let animationAbortController = null;
return {
start() {
animationAbortController?.abort();
animationAbortController = new AbortController();
return animationAbortController.signal;
},
finish() {
animationAbortController = null;
}
};
}
export {
createAnimationSignal
};
//# sourceMappingURL=animation.js.map