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

32 lines (31 loc) 877 B
/** * Glitch animation for web-scrolling-text. * This animation creates a digital glitch effect for a cyber-punk style entrance and exit. * usage: * ```jsx * import glitch from "web-scrolling-text/animation/glitch"; * <ScrollingText options={{ * ...glitch, * }}> * {["Hello", "World"]} * </ScrollingText> * ``` * @module web-scrolling-text/animation/glitch * @see {@link https://unpkg.com/web-scrolling-text/dist/animation/glitch.min.js} * * usage in html/vanilla js: * ```html * <script src="https://unpkg.com/web-scrolling-text/dist/animation/glitch.min.js"></script> * <script> * const scroller = new ScrollingText(element, ["Hello", "World"], { * ...ScrollingTextAnimation.glitch, * }); * scroller.start(); * </script> * ``` */ declare const _default: { enterAnimation: string; exitAnimation: string; }; export default _default;