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
8 lines (7 loc) • 884 B
JavaScript
/**
* ScrollingText-flip v6.1.5
* build on Wed, 31 Dec 2025 04:31:19 GMT
* (c) 2025 Hardik Naik
* Released under the MIT License.
*/
var t="scrolling-text-flip-in",e="scrolling-text-flip-out";!function(t,e){void 0===e&&(e={});var o=e.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("@keyframes scrolling-text-flip-in{0%{opacity:0;transform:rotateX(-90deg) translateY(-30px)}to{opacity:1;transform:rotateX(0deg) translateY(0)}}@keyframes scrolling-text-flip-out{0%{transform:rotateX(0deg) translateY(0)}to{opacity:0;transform:rotateX(90deg) translateY(30px)}}");var o={enterAnimation:t,exitAnimation:e};export{o as default};