Module

Framer.Motion.Types

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

#Id Source

type Id :: forall k. k -> ktype Id a = a

#MotionPropsF Source

type MotionPropsF :: (Type -> Type) -> Row Type -> Row Typetype 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, pan :: f Pan, transition :: f Transition, variants :: f Variants, whileDrag :: f WhileDrag, whileFocus :: f WhileFocus, whileHover :: f WhileHover, whileInView :: f WhileInView, 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

#whileDrag Source

whileDrag :: forall c. Castable c WhileDrag => c -> WhileDrag

#OnLayoutAnimationComplete Source

#TapInfo Source

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

#TargetAndTransition Source

#whileTap Source

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

#whileInView Source

#whileFocus Source

whileFocus :: forall c. Castable c WhileFocus => c -> WhileFocus

#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

#pan Source

pan :: forall a. Castable a Pan => a -> Pan

#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

#AnimatePresenceProps Source

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

#AnimateSharedLayoutProps Source

#AnimateSharedLayoutType Source

#AnimationPlaybackControls Source

#DragControls Source

#WillChange Source

#UseScrollOptions Source

type UseScrollOptions :: Row Typetype UseScrollOptions = (axis :: String |+| Undefined, container :: (Ref (Nullable Node)) |+| Undefined, offset :: (Array String) |+| Undefined, target :: (Ref (Nullable Node)) |+| Undefined)

#LazyMotionProps Source

type LazyMotionProps :: Row Typetype LazyMotionProps = (features :: Foreign, strict :: Boolean |+| Undefined)

#LayoutGroupProps Source

#MotionConfigProps Source

type MotionConfigProps :: Row Typetype MotionConfigProps = (nonce :: String |+| Undefined, reducedMotion :: String |+| Undefined, transition :: CSS |+| Undefined)

#ReorderGroupProps Source

type ReorderGroupProps :: Row Typetype ReorderGroupProps = (axis :: String, onReorder :: EffectFn1 (Array Foreign) Unit, values :: Array Foreign)

#ReorderItemProps Source

type ReorderItemProps :: Row Typetype ReorderItemProps = (key :: String, layout :: Boolean |+| String |+| Undefined, value :: Foreign)