pulsable
Version:
A simple and customizable JavaScript library to add a pulsing/skeleton loading effect to your specific html section.
21 lines (20 loc) • 529 B
TypeScript
import './css/index.scss';
interface bgColors {
medium: string;
light: string;
}
type pulseAnimation = 'none' | 'pulse' | 'wave' | 'wave-reverse';
export interface Props {
animation?: pulseAnimation;
bgColors?: bgColors;
noRounded?: boolean;
noPadding?: boolean;
[key: string]: any;
}
export interface ISetPulsing {
rootElement: HTMLElement;
config?: Props;
loading?: boolean;
}
declare const setPulsing: ({ rootElement, config, loading }: ISetPulsing) => void;
export default setPulsing;