Bootstrap 4.1.1 Snippet by arekzet

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-6"> <div class="flip-card"> <div class="flip-card-inner"> <div class="flip-card-front"> <h1>John Kowalsky</h1> <p>Painter</p> <p>Bla bla bla bla</p> </div> <div class="flip-card-back"> <h1>John Kowalsky</h1> <p>Painter</p> <p>Bla bla bla bla</p> </div> </div> </div> </div> <div class="col-6"> <div class="flip-card"> <div class="flip-card-inner"> <div class="flip-card-front"> <h1>Joe Nowak</h1> <p>Super Engineer</p> <p>Bla bla bla bla</p> </div> <div class="flip-card-back"> <h1>John Nowak</h1> <p>Super Engineer</p> <p>Bla bla bla bla</p> </div> </div> </div> </div> </div> </div>
/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */ .flip-card { /*background-color: transparent;*/ width: 100%; height: 10em; border-radius:1.5em; border: 1px solid red; perspective: 1000px; /* Remove this if you don't want the 3D effect */ } /* This container is needed to position the front and back side */ .flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; } /* Do an horizontal flip when you move the mouse over the flip box container */ .flip-card:hover .flip-card-inner { transform: rotateY(180deg); } /* Position the front and back side */ .flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; /* Safari */ backface-visibility: hidden; } /* Style the front side (fallback if image is missing) */ .flip-card-front { background-color: #bbb; border-radius:1.5em; color: black; } /* Style the back side */ .flip-card-back { background-color: dodgerblue; border-radius:1.5em; color: orange; transform: rotateY(180deg); }

Related: See More

Questions / Comments: