UNPKG

svelte-motion

Version:

Svelte animation library based on the React library framer-motion.

33 lines (32 loc) 1.05 kB
/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import { TransformPoint2D } from "../../types/geometry"; import { HTMLMotionComponents } from "../html/types"; import { SVGMotionComponents } from "../svg/types"; export interface DOMVisualElementOptions { /** * A function that can map a page point between spaces. Used by Framer * to support dragging and layout animations within scaled space. * * @public */ transformPagePoint?: TransformPoint2D; /** * Allow `transform` to be set as `"none"` if all transforms are their default * values. Switching to this removes the element as a GPU layer which can lead to subtle * graphical shifts. * * @public */ allowTransformNone?: boolean; /** * Allow this element to be GPU-accelerated. We currently enable this by * adding a `translateZ(0)`. * * @public */ enableHardwareAcceleration?: boolean; } export declare type DOMMotionComponents = HTMLMotionComponents & SVGMotionComponents;