cssscript.com cssscript.com

Accessible Accordion With JavaScript And CSS3 – Accordion.js

A fully accessible and smoothly animated accordion component that expands and collapses accordion panels using CSS3 transitions. The plugin automatically adds accessibility attributes to accordions following the WAI-ARIA practices. How to use it: 1. Install & download. # NPM $ npm install vanilla-js-accordion --save 2. Import the Accordion.js into the document. <link rel="stylesheet" href="accordion.css"...

cssscript.com cssscript.com

Tiny Tags Input With Autosuggest – Token Autocomplete

A tiny Vanilla JavaScript tag/token input library that makes it possible to select tags/tokens from a suggestion list or directly type your own tags/tokes in the input. How to use it: 1. Insert the Token Autocomplete’s JavaScript and Stylesheet into the HTML. <link href="token-autocomplete.css" rel="stylesheet" /> <script src="token-autocomplete.js"></script> 2. Create a DIV element that will be...

cssscript.com cssscript.com

Customizable Push Notification Library For The Web – Notifier.js

Notifier.js is an easy yet fully configurable push notification library to show toast and growl style messages in the bottom right corner of the page. More Features: Allows you to attach the notifications to any container. 4 built-in themes: Success, Error, Warning, Info. Auto dismisses with a countdown bar. Allows you to create your own themes (styles). How to use it: 1. Download & unzip the library and then load the minified...

cssscript.com cssscript.com

Responsive Flexbox Based CSS Front-end Framework – Griddle

Griddle is a CSS front-end framework that mainly provides a flexbox based grid system for modern mobile-first web design. Features: xs, sm, md, lg, xl, and xxl breakpoints. Custom space between grid items. Allows you to specify the number of rows. Spacing, Display, Color, and Image modifiers. Customizable via CSS variables. How to use it: 1. Install and download the Griddle. # Yarn $ yarn add @daveberning/griddle # NPM $ npm install...

cssscript.com cssscript.com

Check If Your Users Use A VPN – poc-vpn-detection

A vanilla JavaScript VPN detector that checks if your users are accessing your site via a VPN. This library compares the browser’s time zone with that of the IP address and notifies your visitors if using a VPN. How to use it: 1. Download and load the test.js library in the document. <script type="text/javascript" src="./test.js"></script> 2. Add the #body to the body tag. <body id="body"> ...

cssscript.com cssscript.com

Interactive Dot Matrix In JavaScript And SVG – DotMatrx.js

DotMatrx.js is a JavaScript library to create an animated, responsive, interactive, SVG based dot/letter matrix where dots/letters react to mouse and touch events. How to use it: 1. Load the necessary JavaScript files in the document. <script src="src/CoordinateTranslator.js"></script> <script src="src/BaseDot.js"></script> <script src="src/SmartDot.js"></script> <script...

cssscript.com cssscript.com

Convert HTML Document Into PDF – html2PDF

A configurable and user-friendly HTML to PDF converter built with pure JavaScript. Features: Split PDF into several pages or not. Supports both Portrait and Landscape orientations. Custom output type and file name. Allows you to decide whether or not to load images from a server using CORS. Custom PDF header & footer. Callback functions. How to use it: 1. Download and insert the ‘html2pdf.js’ script into the HTML...

cssscript.com cssscript.com

Client-side Image (JPG, PNG, BMP) Converter – ImageConverter

An easy and convenient image converter that allows the user to convert image file formats (png, jpg, and bmp) on the client-side. Dependencies: FileSaver.js: HTML5 Save As library. JSZip: JavaScript class for generating and reading zip files How to use it: 1. Load the necessary JavaScript files in the document. <script src="jszip.min.js"></script> <script src="FileSaver.min.js"></script> 2. Build the...

cssscript.com cssscript.com

Automatic Dark Mode Switcher – darkmode.js

darkmode.js is a smart dark mode switcher that automatically switches between dark theme of light theme of your page based on the user’s local time and system scheme. How to use it: 1. Prepare dark and light themes for your web page. /* dark.css */ body { color: #fff; background-color: #222; } /* light.css */ body { color: #222; background-color: #fff; } 2. Enable the light theme when the user turns off the...