UNPKG

web-scrolling-text

Version:

A lightweight, customizable text animation library for creating smooth scrolling text effects with support for React, Next.js, Angular and vanilla JavaScript

45 lines (44 loc) 1.17 kB
declare const ClassToExtend: typeof HTMLElement; /** * @description: Web Component for ScrollingText * @extends HTMLElement * @example * <scrolling-text * interval="3000" * animation-duration="1000" * loop="true" * auto-start="true" * > * <div>First text content</div> * <div>Second text content</div> * <div>Third text content</div> * </scrolling-text> */ declare class ScrollingTextElement extends ClassToExtend { private _scrollingText; private _originalChildren; static get observedAttributes(): string[]; constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; private _initialize; /** * @description: Start the scrolling text */ start(): void; /** * @description: Pause the scrolling text */ pause(): void; /** * @description: Stop the scrolling text */ stop(): void; /** * @description: Dispose the scrolling text */ dispose(): void; } declare const register: () => void; export { ScrollingTextElement, register };