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.

·

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