partial-keyframes.mjs 282 B

12345678910111213
  1. import { memo } from 'motion-utils';
  2. const supportsPartialKeyframes = /*@__PURE__*/ memo(() => {
  3. try {
  4. document.createElement("div").animate({ opacity: [1] });
  5. }
  6. catch (e) {
  7. return false;
  8. }
  9. return true;
  10. });
  11. export { supportsPartialKeyframes };