Avataaars API Documentation - v3.1.0
    Preparing search index...

    Module Avatar

    Main Avatar component with animation features

    This module provides the primary Avatar component for the avataaars library. It supports optional animation features including:

    • Idle animation: Random expression changes when not hovering
    • Hover scale: Visual scaling effect on mouse hover
    • Hover animation: Expression sequence animation on hover

    All animation features are independent and can be combined as needed.

    Enumerations

    AvatarStyle

    Interfaces

    HoverExpression
    Props

    Type Aliases

    TopType
    AccessoriesType
    HairColor
    HatColor
    FacialHairType
    FacialHairColor
    ClotheType
    ClotheColor
    GraphicType
    EyeType
    EyebrowType
    MouthType
    SkinColor
    OptionKey

    Variables

    TOP_TYPES
    ACCESSORIES_TYPES
    HAIR_COLORS
    HAT_COLORS
    FACIAL_HAIR_TYPES
    FACIAL_HAIR_COLORS
    CLOTHE_TYPES
    CLOTHE_COLORS
    GRAPHIC_TYPES
    EYE_TYPES
    EYEBROW_TYPES
    MOUTH_TYPES
    SKIN_COLORS

    Functions

    default
    Piece