How can I get flip back effect on mobile devices? It works fine on pc because I use the :hover pseudo selector, but on mobile devices it just flips once and flips back only if another card is clicked. How can I achieve full flip effect on phones and tablets?
.flip-card {
background-color: transparent;
width: 300px;
height: 300px;
perspective: 1000px;
margin: 2%;
}
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.flip-card-front {
background-color: #bbb;
color: white;
}
.flip-card-back {
background-color: #2980b9;
color: white;
transform: rotateY(180deg);
}
.preiposle{
display: flex;
justify-content: space-evenly;
padding-top: 50px;
position: relative;
text-align: center;
color: white;
flex-wrap: wrap;
}