I have a table with 3 columns and 10 rows. I would like to flip each row one by one, where each row contains data on both the front and back sides. The flipping animation should be similar to the example provided in this link, but the flipping should start from the top row and go all the way down to the last row before starting over again.
$(document).ready(function() {
setInterval(function() {
$('.flashcard').toggleClass('flipped');
}, 5000);
});
.stage {
-webkit-perspective: 1000;
}
.flashcard {
height: 300px;
width: 500px;
margin: 10% auto;
border: 1px solid gray;
box-shadow: 2px 2px 2px #000;
-webkit-transform-style: preserve-3d;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.flipped,
.back {
transform: rotateX(180deg);
-webkit-transform: rotateX(180deg);
}
.front,
.back {
height: 300px;
width: 500px;
position: absolute;
text-align: center;
-webkit-backface-visibility: hidden;
}
.front p,
.back p {
margin-top: 25%;
font-size: 3em;
}
1
2