UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

14 lines (11 loc) 282 B
import { memo } from 'motion-utils'; const supportsPartialKeyframes = /*@__PURE__*/ memo(() => { try { document.createElement("div").animate({ opacity: [1] }); } catch (e) { return false; } return true; }); export { supportsPartialKeyframes };