Documentation
Transitions
IImageTransition

IImageTransition

This type of transition is used to transition image elements.

export interface IImageTransition<T extends ElementProp = ImgElementProp> extends ITransition<T> {
    setSrc(src: ImageSrc | ImageColor): void;
    copy(): IImageTransition<T>;
}

setSrc

Sometimes we cannot know the image src immediately, so we need to set it later.

setSrc(src: ImageSrc | ImageColor): void;

See ImageSrc and ImageColor for more information.