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