Module
Framer.Motion
- Package
- purescript-framer-motion
- Repository
- i-am-the-slime/purescript-framer-motion
#motion Source
motion :: forall result baseProps motionSubset. Union baseProps (MotionProps ()) result => Nub result result => Castable motionSubset (Record (MotionProps ())) => motionSubset -> Record baseProps -> Record result#withMotion Source
withMotion :: forall result baseProps motionSubset. Union baseProps (MotionProps ()) result => Nub result result => Castable motionSubset (Record (MotionProps ())) => Record baseProps -> motionSubset -> Record result#animatePresence Source
animatePresence :: forall attrs attrs_ kids. Union attrs attrs_ AnimatePresenceProps => IsJSX kids => Record attrs -> kids -> JSX#lazyMotion Source
lazyMotion :: forall attrs attrs_ kids. Union attrs attrs_ LazyMotionProps => IsJSX kids => Record attrs -> kids -> JSX#layoutGroup Source
layoutGroup :: forall attrs attrs_ kids. Union attrs attrs_ LayoutGroupProps => IsJSX kids => Record attrs -> kids -> JSX#motionConfig Source
motionConfig :: forall attrs attrs_ kids. Union attrs attrs_ MotionConfigProps => IsJSX kids => Record attrs -> kids -> JSX#reorderGroup Source
reorderGroup :: forall attrs attrs_ kids. Union attrs attrs_ ReorderGroupProps => IsJSX kids => Record attrs -> kids -> JSX#reorderItem Source
reorderItem :: forall attrs attrs_ kids. Union attrs attrs_ ReorderItemProps => IsJSX kids => Record attrs -> kids -> JSX#startAnimation Source
startAnimation :: CSS -> AnimationControls -> Aff Unit#startAnimationDynamic Source
startAnimationDynamic :: forall arg. (arg -> CSS) -> AnimationControls -> Aff UnitRe-exports from Framer.Motion.Hook
#ViewportScrollValues Source
type ViewportScrollValues = { scrollX :: MotionValue Number, scrollXProgress :: MotionValue Number, scrollY :: MotionValue Number, scrollYProgress :: MotionValue Number }#UseWillChange Source
data UseWillChange t0#UseViewportScroll Source
data UseViewportScroll t0#UseVelocity Source
data UseVelocity t0#UseTransform Source
data UseTransform t0 t1#UseReducedMotion Source
data UseReducedMotion t0#UseMotionValueEvent Source
data UseMotionValueEvent t0#UseDragControls Source
data UseDragControls t0#UseAnimationFrame Source
data UseAnimationFrame t0#UseAnimation Source
data UseAnimation t0#UseAnimate Source
data UseAnimate t0#TransformOptions Source
type TransformOptions :: forall k. k -> Typetype TransformOptions a = { clamp :: Maybe Boolean, ease :: Maybe Ease }
#SpringProps Source
type SpringProps = { damping :: Number |+| Int |+| Undefined, from :: Number |+| Int |+| Undefined, mass :: Number |+| Int |+| Undefined, restDelta :: Number |+| Int |+| Undefined, restSpeed :: Number |+| Int |+| Undefined, stiffness :: Number |+| Int |+| Undefined, to :: Number |+| Int |+| Undefined, velocity :: Number |+| Int |+| Undefined }#InViewOptions Source
data InViewOptions#AnimateFunction Source
data AnimateFunction#useTransformMapE Source
useTransformMapE :: forall a b. (a -> Effect b) -> MotionValue a -> Hook (UseTransform b) (MotionValue b)#useTransformMap Source
useTransformMap :: forall a b. MotionValue a -> (a -> b) -> Hook (UseTransform a) (MotionValue b)#useTransformEffect Source
useTransformEffect :: forall a. (Effect a) -> Hook (UseTransform a) (MotionValue a)#useTransform Source
useTransform :: forall a. MotionValue a -> TwoOrMore (Number /\ a) -> Maybe (TransformOptions a) -> Hook (UseTransform a) (MotionValue a)#useSpringWithNumber Source
useSpringWithNumber :: forall opts. Castable opts SpringProps => Number -> opts -> Hook (UseSpring (MotionValue Number)) (MotionValue Number)#useSpringWithMotionValue Source
useSpringWithMotionValue :: forall a opts. Castable opts SpringProps => MotionValue a -> opts -> Hook (UseSpring (MotionValue a)) (MotionValue a)#useScroll Source
useScroll :: forall attrs attrs_. Union attrs attrs_ UseScrollOptions => Record attrs -> Hook UseScroll ViewportScrollValues#useMotionValueEvent Source
useMotionValueEvent :: forall a. MotionValue a -> String -> (a -> Effect Unit) -> Hook UseMotionValueEvent Unit#useAnimationFrame Source
useAnimationFrame :: (Number -> Number -> Effect Unit) -> Hook UseAnimationFrame Unit#useAnimate Source
useAnimate :: Hook (UseAnimate) { animate :: AnimateFunction, scope :: Ref (Nullable Node) }Re-exports from Framer.Motion.MotionComponent
#custom Source
custom :: forall old. ReactComponent (Record old) -> Effect (ReactComponent (Record (MotionProps old)))Re-exports from Framer.Motion.Types
#WillChange Source
data WillChange#WhileInView Source
type WhileInView = CSS |+| VariantLabel |+| Undefined#WhileFocus Source
type WhileFocus = CSS |+| VariantLabel |+| Undefined#VariantLabel Source
newtype VariantLabelConstructors
Instances
(IsSymbol sym) => MappingWithIndex MakeVariantLabel (Proxy sym) a VariantLabel
#TargetAndTransition Source
type TargetAndTransition = CSS#OnHoverStart Source
type OnHoverStart = (EffectFn2 MouseEvent EventInfo Unit) |+| Undefined#OnHoverEnd Source
type OnHoverEnd = (EffectFn2 MouseEvent EventInfo Unit) |+| Undefined#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
#MakeVariantLabel Source
data MakeVariantLabelConstructors
Instances
(IsSymbol sym) => MappingWithIndex MakeVariantLabel (Proxy sym) a VariantLabel
#LazyMotionProps Source
type LazyMotionProps :: Row Typetype LazyMotionProps = (features :: Foreign, strict :: Boolean |+| Undefined)
#DragElastic Source
type DragElastic = Boolean |+| Number |+| BoundingBox2D |+| Undefined#DragControls Source
data DragControls#DragConstraints Source
type DragConstraints = (Ref (Nullable Node)) |+| BoundingBox2D |+| Undefined#AnimationDefinition Source
type AnimationDefinition = Foreign#AnimationControls Source
data AnimationControls#AnimatePresenceProps Source
type AnimatePresenceProps :: Row Typetype AnimatePresenceProps = (children :: Array JSX, custom :: forall a. a, exitBeforeEnter :: Boolean, initial :: Boolean, onExitComplete :: Effect Unit)
#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)
#willChangeAdd Source
willChangeAdd :: WillChange -> String -> Effect Unit#whileInView Source
whileInView :: forall c. Castable c WhileInView => c -> WhileInView#whileHover Source
whileHover :: forall c. Castable c WhileHover => c -> WhileHover#whileFocus Source
whileFocus :: forall c. Castable c WhileFocus => c -> WhileFocus#variantsFromObject Source
variantsFromObject :: forall o. Object o -> Variants#transition Source
transition :: forall r. Record r -> Transition#onViewportBoxUpdate Source
onViewportBoxUpdate :: (AxisBox2D -> BoxDelta -> Effect Unit) -> OnViewportBoxUpdate#onTapStart Source
onTapStart :: (Event -> TapInfo -> Effect Unit) -> OnTapStart#onPanStart Source
onPanStart :: (Event -> PanInfo -> Effect Unit) -> OnPanStart#onHoverStart Source
onHoverStart :: (MouseEvent -> EventInfo -> Effect Unit) -> OnHoverStart#onHoverEnd Source
onHoverEnd :: (MouseEvent -> EventInfo -> Effect Unit) -> OnHoverEnd#onDragStart Source
onDragStart :: (Event -> PanInfo -> Effect Unit) -> OnDragStart#onAnimationStart Source
onAnimationStart :: (Effect Unit) -> OnAnimationStart#makeVariantLabels Source
makeVariantLabels :: forall a b. HMapWithIndex MakeVariantLabel a b => a -> b#dragPropagation Source
dragPropagation :: forall a. Castable a DragPropagation => a -> DragPropagation#dragMomentum Source
dragMomentum :: forall c. Castable c DragMomentum => c -> DragMomentum#dragElasticBoundingBox Source
dragElasticBoundingBox :: forall a. Castable a BoundingBox2D => a -> DragElastic#dragElastic Source
dragElastic :: forall c. Castable c DragElastic => c -> DragElastic#dragControlsStart Source
dragControlsStart :: DragControls -> Event -> Effect Unit#dragConstraintsBoundingBox Source
dragConstraintsBoundingBox :: forall a. Castable a BoundingBox2D => a -> DragConstraints#dragConstraints Source
dragConstraints :: forall a. Castable a DragConstraints => a -> DragConstraints#customProp Source
customProp :: forall a. a -> Foreign#callback Source
callback :: forall a c f. Castable c a => EffectFnMaker f c => f -> a#boundingBox2D Source
boundingBox2D :: forall c. Castable c BoundingBox2D => c -> BoundingBox2D