UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

26 lines (23 loc) • 637 B
"use client"; import { PinchGesture } from '../../gestures/pinch.mjs'; import { createDomVisualElement } from './create-visual-element.mjs'; /** * The `pinch` prop. Not part of `motion` components or the `domMax` * bundle, so load it on its own or alongside them: * * ```jsx * <LazyMotion features={pinchFeatures}> * <LazyMotion features={{ ...domMax, ...pinchFeatures }}> * ``` * * @public */ const pinchFeatures = { renderer: createDomVisualElement, pinch: { Feature: PinchGesture, isEnabled: (props) => !!props.pinch, }, }; export { pinchFeatures }; //# sourceMappingURL=features-pinch.mjs.map