Module

Framer.Motion.Types

Package
purescript-framer-motion
Repository
i-am-the-slime/purescript-framer-motion

#Id Source

type Id a = a

#MotionPropsF Source

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 Source

#VariantLabel Source

#Target Source

data Target

Constructors

#AnimationControls Source

#prop Source

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

#dragMomentum Source

#dragElastic Source

#dragElasticBoundingBox Source

#BoundingBox2D Source

#boundingBox2D Source

#Point2D Source

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

#PanInfo Source

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

#onTapCancel Source

#Axis Source

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

#AxisBox2D Source

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

#EventInfo Source

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

#AxisDelta Source

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

#BoxDelta Source

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

#AnimationDefinition Source

#OnAnimationStart Source

#whileHover Source

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

#OnLayoutAnimationComplete Source

#TapInfo Source

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

#TargetAndTransition Source

#whileTap Source

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

#EffectFnMaker Source

class EffectFnMaker fn effectFn | fn -> effectFn where

Members

Instances

#callback Source

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

#customProp Source

customProp :: forall a. a -> Foreign

#layoutId Source

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

#animate Source

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

#initial Source

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

#transition Source

transition :: forall r. Record r -> Transition

#drag Source

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

#dragConstraints Source

#dragConstraintsBoundingBox Source

#dragPropagation Source

#exit Source

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

#variants Source

variants :: forall r. Record r -> Variants

#variantsFromObject Source

#layout Source

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

#MakeVariantLabel Source

#makeVariantLabels Source

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

#Infinity Source

data Infinity :: Type

#AnimatePresenceProps Source

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

#AnimateSharedLayoutProps Source

#AnimateSharedLayoutType Source

#AnimationPlaybackControls Source