primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
70 lines (69 loc) • 2.77 kB
TypeScript
import { AfterViewInit, OnInit } from '@angular/core';
import { BaseComponent } from 'primeng/basecomponent';
import * as i0 from "@angular/core";
interface AnimateOnScrollOptions {
root?: HTMLElement;
rootMargin?: string;
threshold?: number;
}
/**
* AnimateOnScroll is used to apply animations to elements when entering or leaving the viewport during scrolling.
* @group Components
*/
export declare class AnimateOnScroll extends BaseComponent implements OnInit, AfterViewInit {
/**
* Selector to define the CSS class for enter animation.
* @group Props
*/
enterClass: string | undefined;
/**
* Selector to define the CSS class for leave animation.
* @group Props
*/
leaveClass: string | undefined;
/**
* Specifies the root option of the IntersectionObserver API.
* @group Props
*/
root: HTMLElement | undefined | null;
/**
* Specifies the rootMargin option of the IntersectionObserver API.
* @group Props
*/
rootMargin: string | undefined;
/**
* Specifies the threshold option of the IntersectionObserver API
* @group Props
*/
threshold: number | undefined;
/**
* Whether the scroll event listener should be removed after initial run.
* @group Props
*/
once: boolean;
observer: IntersectionObserver | undefined;
resetObserver: any;
isObserverActive: boolean;
animationState: any;
animationEndListener: VoidFunction | undefined;
ngOnInit(): void;
ngAfterViewInit(): void;
get options(): AnimateOnScrollOptions;
bindIntersectionObserver(): void;
enter(): void;
leave(): void;
bindAnimationEvents(): void;
unbindAnimationEvents(): void;
unbindIntersectionObserver(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AnimateOnScroll, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<AnimateOnScroll, "[pAnimateOnScroll]", never, { "enterClass": { "alias": "enterClass"; "required": false; }; "leaveClass": { "alias": "leaveClass"; "required": false; }; "root": { "alias": "root"; "required": false; }; "rootMargin": { "alias": "rootMargin"; "required": false; }; "threshold": { "alias": "threshold"; "required": false; }; "once": { "alias": "once"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_threshold: unknown;
static ngAcceptInputType_once: unknown;
}
export declare class AnimateOnScrollModule {
static ɵfac: i0.ɵɵFactoryDeclaration<AnimateOnScrollModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<AnimateOnScrollModule, never, [typeof AnimateOnScroll], [typeof AnimateOnScroll]>;
static ɵinj: i0.ɵɵInjectorDeclaration<AnimateOnScrollModule>;
}
export {};