Module
Framer.Motion.Hook
- Package
- purescript-framer-motion
- Repository
- i-am-the-slime/purescript-framer-motion
#UseAnimation Source
data UseAnimation :: Type -> Type
#UseViewportScroll Source
data UseViewportScroll :: Type -> Type
#useTransform Source
useTransform :: forall a. MotionValue a -> TwoOrMore (Number /\ a) -> Maybe (TransformOptions 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 }
#ViewportScrollValues Source
type ViewportScrollValues = { scrollX :: MotionValue Number, scrollXProgress :: MotionValue Number, scrollY :: MotionValue Number, scrollYProgress :: MotionValue Number }