UNPKG

@gitlab/ui

Version:
14 lines (12 loc) 901 B
// adopted this method from Bootstraps utils // https://github.com/bootstrap-vue/bootstrap-vue/blob/2fd03f0b1d0cc41f9930078ba8b1c16b10e4ac2f/tests/utils.js#L6 var waitForAnimationFrame = function waitForAnimationFrame() { return new Promise(function (resolve) { return requestAnimationFrame(resolve); }); }; var getResetAnimationsCSS = function getResetAnimationsCSS() { return "\n *, *::after, *::before {\n -webkit-transition: none !important;\n -moz-transition: none !important;\n -ms-transition: none !important;\n -o-transition: none !important;\n transition: none !important;\n\n -webkit-animation: none !important;\n -moz-animation: none !important;\n -ms-animation: none !important;\n -o-animation: none !important;\n animation: none !important;\n }"; }; export default getResetAnimationsCSS; export { getResetAnimationsCSS, waitForAnimationFrame };