UNPKG

@sandlada/vue-mdc

Version:

![Vue MDC Logo](https://raw.githubusercontent.com/sandlada/vue-mdc/refs/heads/main/docs/vue-mdc-cover.png)

25 lines (24 loc) 581 B
/** * @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