webani - v1.0.0
    Preparing search index...

    Abstract class representing an animation that can modify a WebaniTransformable object.

    This class serves as a blueprint for animations. Subclasses must implement the frame method to define how the transformation changes over time, and the done method to specify when the animation has finished.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Determines whether the animation is complete based on the current time or progress.

      Parameters

      • t: number

        The current time or progress of the animation. This is typically either a value between 0 and 1 or the time in milliseconds since the start of the animation.

      Returns boolean

      A boolean indicating whether the animation has finished.

    • This method should define how the transformation of a WebaniTransformable object changes at each frame.

      Parameters

      • t: number

        The current time or progress of the animation. This is typically either a value between 0 and 1 or the time in milliseconds since the start of the animation.

      Returns WebaniTransformable

      The WebaniTransformable object with updated transformation for the current frame.