Module
Framer.Motion.Hook
- Package
- purescript-framer-motion
- Repository
- i-am-the-slime/purescript-framer-motion
#UseAnimation Source
data UseAnimation t0#UseViewportScroll Source
data UseViewportScroll t0#useTransform Source
useTransform :: forall a. MotionValue a -> TwoOrMore (Number /\ a) -> Maybe (TransformOptions a) -> Hook (UseTransform a) (MotionValue a)#useTransformMap Source
useTransformMap :: forall a b. MotionValue a -> (a -> b) -> Hook (UseTransform a) (MotionValue b)#useTransformMapE Source
useTransformMapE :: forall a b. (a -> Effect b) -> MotionValue a -> Hook (UseTransform b) (MotionValue b)#useTransformEffect Source
useTransformEffect :: forall a. (Effect a) -> Hook (UseTransform a) (MotionValue a)#useSpringWithMotionValue Source
useSpringWithMotionValue :: forall a opts. Castable opts SpringProps => MotionValue a -> opts -> Hook (UseSpring (MotionValue a)) (MotionValue a)#useSpringWithNumber Source
useSpringWithNumber :: forall opts. Castable opts SpringProps => Number -> opts -> Hook (UseSpring (MotionValue Number)) (MotionValue Number)#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 }#UseTransform Source
data UseTransform t0 t1#ViewportScrollValues Source
type ViewportScrollValues = { scrollX :: MotionValue Number, scrollXProgress :: MotionValue Number, scrollY :: MotionValue Number, scrollYProgress :: MotionValue Number }#TransformOptions Source
type TransformOptions :: forall k. k -> Typetype TransformOptions a = { clamp :: Maybe Boolean, ease :: Maybe Ease }
#InViewOptions Source
data InViewOptions#useAnimate Source
useAnimate :: Hook (UseAnimate) { animate :: AnimateFunction, scope :: Ref (Nullable Node) }#UseAnimate Source
data UseAnimate t0#AnimateFunction Source
data AnimateFunction#UseDragControls Source
data UseDragControls t0#useMotionValueEvent Source
useMotionValueEvent :: forall a. MotionValue a -> String -> (a -> Effect Unit) -> Hook UseMotionValueEvent Unit#UseMotionValueEvent Source
data UseMotionValueEvent t0#UseVelocity Source
data UseVelocity t0#useAnimationFrame Source
useAnimationFrame :: (Number -> Number -> Effect Unit) -> Hook UseAnimationFrame Unit#UseAnimationFrame Source
data UseAnimationFrame t0#UseReducedMotion Source
data UseReducedMotion t0#UseWillChange Source
data UseWillChange t0#useScroll Source
useScroll :: forall attrs attrs_. Union attrs attrs_ UseScrollOptions => Record attrs -> Hook UseScroll ViewportScrollValues