Vanilla Javascript HSLA Color Picker With Interactive Sliders

Vanilla javascript HSLA (HUE, SATURATION, LIGHT, ALPHA) color picker with interactive sliders.

Must Read: A Color Parsing and Manipulation Typescript Library | color2k

How to make use of it:

1. Create a container where you want to apply the selected color as well.

<div class="swatch" style="background-color: hsla(170, 55%, 55%, 1)">

2. Create another container to display the color name.

<h3 class="colorname">hsla color</h3>

3. Create the HUE, SATURATION, LIGHT, and ALPHA sliders for the color picker.

<h6>HUE</h6>
<div class="hue">
  <input name="hue" type="range" min="1" max="300" value="130">
</div>
<h6>SATURATION</h6>
<div class="satcolor">
  <div class="sat">
    <input name="sat" type="range" min="1" max="100" value="100">
  </div>
</div>
<h6>LIGHT</h6>
<div class="light">
  <input name="light"type="range" min="1" max="100" value="55">
</div>
<h6>ALPHA</h6>
<div class="alpha">
  <input name="alpha"type="range" min="0" max="1" step="0.01" value="1">
</div>

4. Load the main JavaScript file at the end of the document.

<script src="main.js" defer></script>

See Demo And Download

hsla-color-picker

Official Website(lizthrilla): Click Here

This superior jQuery/javascript plugin is developed by lizthrilla. For extra Advanced Usage, please go to the official website.

Related Posts

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Audio-Visualizations-Wave

How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…

swiper-touch-slider

Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…

Leave a Reply

Your email address will not be published. Required fields are marked *