Module

Framer.Motion.Types

#Id

type Id a = a

#MotionPropsF

type MotionPropsF f r = (animate :: f Animate, custom :: f Foreign, drag :: f Drag, dragConstraints :: f DragConstraints, dragElastic :: f DragElastic, dragMomentum :: f DragMomentum, dragPropagation :: f DragPropagation, exit :: f Exit, initial :: f Initial, layout :: f Layout, layoutId :: f LayoutId, onAnimationComplete :: f OnAnimationComplete, onAnimationStart :: f OnAnimationStart, onDrag :: f OnDrag, onDragEnd :: f OnDragEnd, onDragStart :: f OnDragStart, onHoverEnd :: f OnHoverEnd, onHoverStart :: f OnHoverStart, onLayoutAnimationComplete :: f OnLayoutAnimationComplete, onPan :: f OnPan, onPanEnd :: f OnPanEnd, onPanStart :: f OnPanStart, onTap :: f OnTap, onTapCancel :: f OnTapCancel, onTapEnd :: f OnTapEnd, onTapStart :: f OnTapStart, onViewportBoxUpdate :: f OnViewportBoxUpdate, transition :: f Transition, variants :: f Variants, whileHover :: f WhileHover, whileTap :: f WhileTap | r)

#MotionProps

#Transition

#VariantLabel

#Target

data Target

Constructors

#AnimationControls

#prop

prop :: forall a b. Castable a b => a -> b

#Variants

#LayoutTransition

#DragMomentum

#dragMomentum

#dragElastic

#dragElasticBoundingBox

#BoundingBox2D

#boundingBox2D

#Point2D

type Point2D = { x :: Number, y :: Number }

#PanInfo

type PanInfo = { delta :: Point2D, offset :: Point2D, point :: Point2D, velocity :: Point2D }

#onTapStart

#onTapEnd

#onTap

#onTapCancel

#Axis

type Axis = { max :: Number, min :: Number }

#AxisBox2D

type AxisBox2D = { x :: Axis, y :: Axis }

#EventInfo

type EventInfo = { point :: { x :: Number, y :: Number } }

#AxisDelta

type AxisDelta = { origin :: Number, originPoint :: Number, scale :: Number, translate :: Number }

#BoxDelta

type BoxDelta = { x :: AxisDelta, y :: AxisDelta }

#AnimationDefinition

#OnAnimationStart

#whileHover

whileHover :: forall c. Castable c WhileHover => c -> WhileHover

#OnLayoutAnimationComplete

#TapInfo

type TapInfo = { x :: Number, y :: Number }

#TargetAndTransition

#DragPropagation

#whileTap

whileTap :: forall c. Castable c WhileTap => c -> WhileTap

#EffectFnMaker

class EffectFnMaker fn effectFn | fn -> effectFn where

Members

Instances

#callback

callback :: forall a c f. Castable c a => EffectFnMaker f c => f -> a

#onDragStart

#onDragEnd

#onDrag

#onPanStart

#onPanEnd

#onPan

#customProp

customProp :: forall a. a -> Foreign

#LayoutId

#layoutId

layoutId :: forall a. Castable a LayoutId => a -> LayoutId

#animate

animate :: forall a. Castable a Animate => a -> Animate

#initial

initial :: forall a. Castable a Initial => a -> Initial

#transition

transition :: forall r. Record r -> Transition

#drag

drag :: forall a. Castable a Drag => a -> Drag

#dragConstraints

#dragConstraintsBoundingBox

#dragPropagation

#exit

exit :: forall a. Castable a Exit => a -> Exit

#variants

variants :: forall r. Record r -> Variants

#variantsFromObject

#layout

layout :: forall a. Castable a Layout => a -> Layout

#MakeVariantLabel

#makeVariantLabels

makeVariantLabels :: forall a b. HMapWithIndex MakeVariantLabel a b => a -> b

#Infinity

data Infinity :: Type

#infinity

#AnimatePresenceProps

type AnimatePresenceProps = (children :: Array JSX, custom :: forall a. a, exitBeforeEnter :: Boolean, initial :: Boolean, onExitComplete :: Effect Unit)

#AnimateSharedLayoutProps

#AnimateSharedLayoutType

#AnimationPlaybackControls

Modules