emoji-popup
v2.2.3
Published
A lightweight, fun utility that displays a **random exploding emoji π₯** followed by a **modal message with a close button**. Perfect for playful UI feedback, notifications, or just adding delight to your app π.
Readme
emoji-popup π
A lightweight, fun utility that displays a random exploding emoji π₯ followed by a modal message with a close button.
Perfect for playful UI feedback, notifications, or just adding delight to your app π.
β¨ Features
- Displays a random emoji that scales up and fades out.
- Pops up a modal with your custom message.
- Prevents duplicate popups (appears only once per page load).
- Zero dependencies β pure JavaScript & CSS.
- Works in modern bundler environments (Node.js + Vite, Webpack, Parcel).
β οΈ Note: This package does not run directly in a plain <script> tag in the browser. It must be bundled through a Node.js environment with tools like Vite, Webpack, or similar.
π¦ Installation
npm install emoji-popupπ₯ Usage
document.addEventListener('click',()=>{
showEmojiPopup('π my Message...')
});```