Modal windows have quickly replaced the default browser alert box. Well-designed modals are more compatible with a great user experience and modal windows come with many custom effects and designs.
It’s possible to build pure CSS modals but these often lack a certain je ne sais quoi that you’ll find in JS-powered scripts.
Read Also: Build Modals Using Pure CSS With CSS Modal
This library has been around for a while but it’s still technically in v1.0 development with frequent improvements.
But it’s a stable script running on pure vanilla JS so you can use this anywhere. It doesn’t require any knowledge of ECMAScript nor do you need any higher-level libraries like TypeScript.
Everything in Tingle.js is well documented and even comes with a clear API for customizing the animations, button effects, and callback functions.
The main documentation is clearly outlined with live examples you can copy/paste into your HTML.
Tingle.js is a pretty straightforward script. You’ll either like the way it works, or you won’t.
With a few minutes on the main demo page, you should be able to tell if you like this or not. It supports as many buttons as you need along with user input fields if you wanna pull info from the user.
Plus this can work with huge lengthy modals in terms of service, custom alert messages, and even embedded content with images & videos.
Definitely one of the most well-supported modal windows out there and the clean design is easy to restyle for any layout.
The post Tingle.js – A Free Vanilla JS Modal Window Script for Minimalists appeared first on Hongkiat.