Module
Framer.Motion.Types
- Package
- purescript-framer-motion
- Repository
- i-am-the-slime/purescript-framer-motion
#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
type MotionProps :: Row Type -> Row Typetype MotionProps r = MotionPropsF Id r
#VariantLabel Source
newtype VariantLabelConstructors
Instances
(IsSymbol sym) => MappingWithIndex MakeVariantLabel (Proxy sym) a VariantLabel
#AnimationControls Source
data AnimationControls#dragMomentum Source
dragMomentum :: forall c. Castable c DragMomentum => c -> DragMomentum#DragConstraints Source
type DragConstraints = (Ref (Nullable Node)) |+| BoundingBox2D |+| Undefined#DragElastic Source
type DragElastic = Boolean |+| Number |+| BoundingBox2D |+| Undefined#dragElastic Source
dragElastic :: forall c. Castable c DragElastic => c -> DragElastic#dragElasticBoundingBox Source
dragElasticBoundingBox :: forall a. Castable a BoundingBox2D => a -> DragElastic#boundingBox2D Source
boundingBox2D :: forall c. Castable c BoundingBox2D => c -> BoundingBox2D#WhileInView Source
type WhileInView = CSS |+| VariantLabel |+| Undefined#WhileFocus Source
type WhileFocus = CSS |+| VariantLabel |+| Undefined#onTapStart Source
onTapStart :: (Event -> TapInfo -> Effect Unit) -> OnTapStart#AnimationDefinition Source
type AnimationDefinition = Foreign#onAnimationStart Source
onAnimationStart :: (Effect Unit) -> OnAnimationStart#OnHoverStart Source
type OnHoverStart = (EffectFn2 MouseEvent EventInfo Unit) |+| Undefined#onHoverStart Source
onHoverStart :: (MouseEvent -> EventInfo -> Effect Unit) -> OnHoverStart#OnHoverEnd Source
type OnHoverEnd = (EffectFn2 MouseEvent EventInfo Unit) |+| Undefined#onHoverEnd Source
onHoverEnd :: (MouseEvent -> EventInfo -> Effect Unit) -> OnHoverEnd#whileHover Source
whileHover :: forall c. Castable c WhileHover => c -> WhileHover#onViewportBoxUpdate Source
onViewportBoxUpdate :: (AxisBox2D -> BoxDelta -> Effect Unit) -> OnViewportBoxUpdate#TargetAndTransition Source
type TargetAndTransition = CSS#whileInView Source
whileInView :: forall c. Castable c WhileInView => c -> WhileInView#whileFocus Source
whileFocus :: forall c. Castable c WhileFocus => c -> WhileFocus#EffectFnMaker Source
class EffectFnMaker fn effectFn | fn -> effectFn whereMembers
toEffectFn :: fn -> effectFn
Instances
EffectFnMaker (a -> b -> Effect c) (EffectFn2 a b c)EffectFnMaker (a -> Effect b) (EffectFn1 a b)
#callback Source
callback :: forall a c f. Castable c a => EffectFnMaker f c => f -> a#onDragStart Source
onDragStart :: (Event -> PanInfo -> Effect Unit) -> OnDragStart#onPanStart Source
onPanStart :: (Event -> PanInfo -> Effect Unit) -> OnPanStart#customProp Source
customProp :: forall a. a -> Foreign#transition Source
transition :: forall r. Record r -> Transition#dragConstraints Source
dragConstraints :: forall a. Castable a DragConstraints => a -> DragConstraints#dragConstraintsBoundingBox Source
dragConstraintsBoundingBox :: forall a. Castable a BoundingBox2D => a -> DragConstraints#dragPropagation Source
dragPropagation :: forall a. Castable a DragPropagation => a -> DragPropagation#variantsFromObject Source
variantsFromObject :: forall o. Object o -> Variants#MakeVariantLabel Source
data MakeVariantLabelConstructors
Instances
(IsSymbol sym) => MappingWithIndex MakeVariantLabel (Proxy sym) a VariantLabel
#makeVariantLabels Source
makeVariantLabels :: forall a b. HMapWithIndex MakeVariantLabel a b => a -> b#AnimatePresenceProps Source
type AnimatePresenceProps :: Row Typetype AnimatePresenceProps = (children :: Array JSX, custom :: forall a. a, exitBeforeEnter :: Boolean, initial :: Boolean, onExitComplete :: Effect Unit)
#DragControls Source
data DragControls#dragControlsStart Source
dragControlsStart :: DragControls -> Event -> Effect Unit#WillChange Source
data WillChange#willChangeAdd Source
willChangeAdd :: WillChange -> String -> Effect Unit#LazyMotionProps Source
type LazyMotionProps :: Row Typetype LazyMotionProps = (features :: Foreign, strict :: Boolean |+| Undefined)