Pure CSS Content Filter for a simpler effect with fewer lines of CSS, trade the width, height, padding, margin, and opacity properties in each checked input style for “display:none;
” — these styles were just set to have a nice transition between filters. Coded by Sam Gordon
Check out this Pen!
is there any way we can select two colors at the same time?
I think you can do that by using
checkbox
instead ofradio
inputs and you need also to modify CSS properties to match the new input. You can contact the author of this code for further information.