UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

13 lines (8 loc) 601 B
## ✨ New Utility Added: `installWindowHiddenScript` This release introduces the `installWindowHiddenScript` function — a lightweight utility that dynamically applies CSS classes to an element based on window/tab visibility and focus state. ### 📌 Highlights * 🧠 Automatically detects when the window is visible or hidden * 🚀 Triggers the initial state immediately on install * 🔧 Returns a cleanup function to remove all listeners Perfect for status indicators, visual feedback, and more! **Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.13.1...1.13.2