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) • 885 B
JavaScript
/**
* ScrollingText v0.5.7
* build on Sat, 12 Jul 2025 18:15:30 GMT
* (c) 2025 Hardik Naik
* Released under the ISC License.
*/
function t(t,n){void 0===n&&(n={});var o=n.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css","top"===o&&i.firstChild?i.insertBefore(e,i.firstChild):i.appendChild(e),e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}}t("@keyframes scrolling-text-hinge-out{0%{animation-timing-function:ease-in-out}20%,60%{animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{animation-timing-function:ease-in-out;opacity:1;transform:rotate(60deg)}to{opacity:0;transform:translate3d(0,700px,0)}}");t(".scrolling-text-exit{transform-origin:top left}");var n={exitAnimation:"scrolling-text-hinge-out"};export{n as default};