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) • 827 B
TypeScript
/**
* Fade animation for web-scrolling-text.
* This animation makes the text fade in and out of view.
* usage:
* ```jsx
* import fade from "web-scrolling-text/animation/fade";
* <ScrollingText options={{
* ...fade,
* }}>
* {["Hello", "World"]}
* </ScrollingText>
* ```
* @module web-scrolling-text/animation/fade
* @see {@link https://unpkg.com/web-scrolling-text/dist/animation/fade.min.js}
*
* usage in html/vanilla js:
* ```html
* <script src="https://unpkg.com/web-scrolling-text/dist/animation/fade.min.js"></script>
* <script>
* const scroller = new ScrollingText(element, ["Hello", "World"], {
* ...ScrollingTextAnimation.fade,
* });
* scroller.start();
* </script>
* ```
*/
declare const _default: {
enterAnimation: string;
exitAnimation: string;
};
export default _default;