@mediamonks/fast-image-sequence
Version:
The fast-image-sequence-renderer is a powerful package for displaying image sequences at high frame rates on websites. Use it to create smooth animations, 360° product views, or video-like sequences from series of images. Zero dependencies.
15 lines (14 loc) • 725 B
TypeScript
import { default as React } from 'react';
import { UseFastImageSequenceOptions } from './useFastImageSequence.js';
import { FastImageSequence } from '../lib/FastImageSequence.js';
export interface FastImageSequenceComponentProps extends UseFastImageSequenceOptions {
className?: string;
style?: React.CSSProperties;
onReady?: (sequence: FastImageSequence) => void;
onLoadProgress?: (progress: number) => void;
}
export interface FastImageSequenceComponentRef {
sequence: FastImageSequence | null;
container: HTMLDivElement | null;
}
export declare const FastImageSequenceComponent: React.ForwardRefExoticComponent<FastImageSequenceComponentProps & React.RefAttributes<FastImageSequenceComponentRef>>;