How to make Tap states in CSS


#1

Is there a directive or some CSS trick I don’t know about that does a tap state on any element? I want to add a background color when the user taps the sidemenu item but can’t figure out how.


#2

Try using css :active or possibly the .active class on the .item class.

.item:active { }

or

.item.active { }