PowerHorse Engine
    Preparing search index...

    Type Alias createAnimationProps

    type createAnimationProps = {
        animate?: AnimationParamProps;
        children?: Render;
        custom?: CustomAnimationPropDef[];
        default?: AnimationParamProps;
        exit?: AnimationParamProps;
        initial?: AnimationParamProps;
        springs?: Record<string, { damping?: number; frequency?: number }>;
        whileClicking?: AnimationParamProps;
        whileHovering?: AnimationParamProps;
        whileInView?: AnimationParamProps;
    }
    Index

    Properties

    onMount

    children?: Render

    Will revert to these properties when no state is applied. default or animate will be fallback tables with default getting first say.

    default will also run in place of animate for onMount if animate is not defined.

    onWillDismount

    onWillMount

    springs?: Record<string, { damping?: number; frequency?: number }>

    Set the damping and frequency of springs for specific properties.

    damping defaults to 1. frequency defaults to 2.

    whileClicking?: AnimationParamProps

    Whenever the object is being clicked, only works for Buttons.

    whileHovering?: AnimationParamProps

    Whenever the object is being hovered, only works for GUI objects.

    whileInView?: AnimationParamProps