:active (nomal)

by Sasabee

HTML

<div></div>

CSS

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  height: 100vh;
}

div {
  cursor: pointer;
  background-color: #f00;
  width: 300px;
  height: 100px;
  font-size: 24px;
  font-weight: bold;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes frip {
  from {
    transform: rotateX(0);
  }
  to {
    transform:rotateX(360deg);
  }
}

div:active {
  animation: 1s frip;
}

div::before {
  content: "BUTTON";
}