UNPKG

@omnedia/ngx-fade

Version:

A simple component library to add a (directional) fade effect to your elements.

25 lines (22 loc) 1.32 kB
import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core'; declare class NgxFadeComponent implements AfterViewInit, OnDestroy { private platformId; private readonly cdr; omFadeElement: ElementRef<HTMLElement>; direction?: "up" | "down" | "left" | "right"; animateOnlyOnce: boolean; set transitionDuration(duration: string); set transitionFunction(easeFunction: string); set customTransform(customTransform: string); style: any; inViewport: boolean; intersectionObserver?: IntersectionObserver; constructor(platformId: Object, cdr: ChangeDetectorRef); ngAfterViewInit(): void; ngOnDestroy(): void; private initObserver; static ɵfac: i0.ɵɵFactoryDeclaration<NgxFadeComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxFadeComponent, "om-fade", never, { "direction": { "alias": "direction"; "required": false; }; "animateOnlyOnce": { "alias": "animateOnlyOnce"; "required": false; }; "transitionDuration": { "alias": "transitionDuration"; "required": false; }; "transitionFunction": { "alias": "transitionFunction"; "required": false; }; "customTransform": { "alias": "customTransform"; "required": false; }; }, {}, never, ["*"], true, never>; } export { NgxFadeComponent };