UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

10 lines (8 loc) • 200 B
import { MotionProps } from "../types" export function checkShouldInheritVariant({ animate, variants, inherit, }: MotionProps): boolean { return inherit ?? (!!variants && !animate) }