Menu

1 / 2

Introducing KAlert.js — A lightweight animated alert dialog library for JavaScript

DEV Community·Akshay·7 months ago
#KdlTTN7f
#javascript#webdev#frontend#opensource#kalert
Reading 0:00
15s threshold

Introducing KAlert.js — A Lightweight Modern Alert Dialog Library for JavaScript 🚀

While working on my frontend projects, I often needed a clean and modern alternative to the default browser alert dialogs.

The native browser alert:

alert ( " Hello world " );

Enter fullscreen mode

Exit fullscreen mode

is functional, but it looks outdated and isn't customizable.

So I built KAlert.js — a lightweight, animated, Promise-based alert dialog library that works instantly via CDN with zero setup required.

✨ Features

KAlert.js provides:

✅ Animated modal dialogs

✅ Promise-based confirm dialogs

✅ Font Awesome icon support (auto-loaded)

✅ Blur background overlay

✅ Success / error / warning / info alert types

✅ Zero dependencies

✅ CDN-ready usage

✅ Lightweight and fast

📦 Install via CDN (No setup required)

Just include one script:

<script src= "https://cdn.jsdelivr.net/gh/TutorialsAndroid/[email protected]/kalertdialog.js" ></script>

Enter fullscreen mode

Exit fullscreen mode

That’s it.

No…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.