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

8 lines (7 loc) 1.09 kB
/** * ScrollingText-scaleIn v6.1.5 * build on Wed, 31 Dec 2025 04:31:25 GMT * (c) 2025 Hardik Naik * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).ScrollingTextAnimation=e.ScrollingTextAnimation||{},e.ScrollingTextAnimation.scaleIn=t())}(this,(function(){"use strict";var e="scrolling-text-scaleIn-in",t="scrolling-text-scaleIn-out";return function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("@keyframes scrolling-text-scaleIn-in{0%{scale:1.2}to{scale:1;transform:translateY(0)}}@keyframes scrolling-text-scaleIn-out{0%{scale:1;transform:translateY(0)}to{opacity:0;scale:.5}}"),{enterAnimation:e,exitAnimation:t}}));