UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

12 lines (9 loc) 434 B
import { scaleCorrectors } from '../../projection/styles/scale-correction.mjs'; import { transformProps } from '../../render/html/utils/keys-transform.mjs'; function isForcedMotionValue(key, { layout, layoutId }) { return (transformProps.has(key) || key.startsWith("origin") || ((layout || layoutId !== undefined) && (!!scaleCorrectors[key] || key === "opacity"))); } export { isForcedMotionValue };