I have this "hover" selector that performs an action by having the mouse on it. But I do not know how I can cause the action to be triggered when pressed. Something similar to onClick () but in CSS
.flip:hover {
transform: perspective(500px) rotateY(-180deg) translateX(100%);
}