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