
I made this thing with javascript to increment/decrement an input field. It has a hover state but it lacks a click state.
Is there a neat way to make a click state using only CSS?
E.g. darken the background slightly more for 0.1 sec on each click.
Browser compatible solutions preferred but not required.