CSS filters are awesome – and kudos for doing it in Vanilla! A small tip: You can wrap your inputs in a <form> and have a single eventListener, instead of individual eventListeners on all the inputs.
If you set the name of the property in the name-attribute:
CSS filters are awesome – and kudos for doing it in Vanilla! A small tip: You can wrap your inputs in a
<form>and have a singleeventListener, instead of individual eventListeners on all the inputs.If you set the name of the property in the
name-attribute:You only need this snippet, in order to set any of the CSS Custom Properties:
Thank you so much for your tip! :D will do that