Aman Mavi
Aman Mavi's coding Blog

Aman Mavi's coding Blog

New program for changing CSS variables and using JS to apply those changes.

New program for changing CSS variables and using JS to apply those changes.

Aman Mavi's photo
Aman Mavi

Published on Nov 25, 2021

1 min read

This program takes 3 inputs: padding , filter (using blur) and color. Using JS, we take those changing values when there is a movement of mouse cursor over the input range and apply the suffix of px (pixels) to the changing values of padding and blur and null for color (since color does not have pixel).

js-array-fun.gif

 
Share this