motionkit-romjah
Version:
A collection of reusable micro-animations for modern web applications. [Live Storybook demo](https://motionkit-storybook.vercel.app/)
11 lines (10 loc) • 399 B
TypeScript
import { TransitionOptions } from '../types';
export declare class Transition {
private element;
private options;
constructor(element: HTMLElement, options?: Partial<TransitionOptions>);
fadeIn(): Animation;
fadeOut(): Animation;
slideIn(direction?: 'left' | 'right' | 'top' | 'bottom'): Animation;
slideOut(direction?: 'left' | 'right' | 'top' | 'bottom'): Animation;
}