webani - v1.0.0
    Preparing search index...

    A node-based wrapper around WebaniCollection, extending WebaniAnimation to provide hierarchical and composable animation capabilities for objects.

    Each RenderedGroupNode may contain child nodes, forming a tree structure of renderable, animatable objects. This allows coordinated animations, transformations, and styling across user-defined scene graphs.

    Hierarchy (View Summary)

    Indexable

    • [key: string | number | symbol]: any
    Index

    Constructors

    Properties

    animationSet: AnimationSet

    Animation set used to track and control animations applied to this group.

    Accessors

    Methods

    • Fades in all contained objects over a given duration.

      Parameters

      • duration: number = 1000

        Duration of the animation in milliseconds.

      • keepInitialOpacity: boolean = false

        If true, respects original opacity before fading in.

      • asynchronous: boolean = false

        If true, the animation is asynchronous

      Returns RenderedGroupNode

    • Scales all objects in the group by the given factor.

      Parameters

      • factor: Vector3

        The scale factor on each axis.

      • duration: number = 1000

        Duration of the animation.

      • asynchronous: boolean = false

        If true, the animation is asynchronous.

      • backwards: boolean = false

        If true, the animation plays in reverse.

      Returns RenderedGroupNode

    • Animates an interpolated change of color for all WebaniPrimitiveObjects in the node with the provided duration

      Parameters

      • newColor: Vector3

        RGB values of the new color.

      • duration: number = 1000

        Duration of the transition animation.

      • asynchronous: boolean = false

        If true, the animation is asynchronous.

      Returns RenderedGroupNode