Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.



<title>Flip Card Concept Animation</title>
<link rel="stylesheet" href="style.css" type="text/css">


<div class="card">
  <div class="cd-image"></div>
    <div class="cd-body">
      <span class="grid1"></span>
      <span class="grid2"></span>
      <span class="grid3"></span>
      <div class="inside-content">
      <h2 class="title">Prod 001</h2>
      <img src="">
      <p class="info">Lorem ipsum dolor sit amet consectetur adipisicing elit. 
      Non aperiam fugiat eos odit numquam vitae facere dolore id libero sit!</p>


    margin: 0;
    padding: 0;
    box-sizing: border-box;

    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'roboto', sans-serif;
    background: rgb(233, 232, 230);
    perspective: 1000px;

.card {
    width: 300px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: 1s;

.card:hover {
    transform: rotateY(180deg);

.card:hover .cd-body .grid {
    transition-delay: 1s;
    width: 200%;

.card:hover .cd-body .grid:nth-child(2){
    transition-delay: 1.5s;

.card:hover .cd-body .grid:nth-child(3){
    transition-delay: 2s;

.cd-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, -40px) rotateY(180deg);
    width: 85%;
    height: 87%;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid rgb(252, 43, 206);
    opacity: 2;

.cd-body .grid {
    position: absolute;
    border-radius: 100px;
    background: #fff;
    width: 0;
    transition: 0.5s;


.cd-image {
    background: url(;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 20px;
    transform: translateZ(40px);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

.cd-body .grid:nth-child(1){
    height: 25%;
    transform-origin: left;
    top: 0;
    left: -30%;
    transform: rotate(-10deg);

.cd-body .grid:nth-child(2){
    height: 50%;
    transform-origin: right;
    top: 5%;
    right: -30%;
    transform: rotate(-10deg);

.cd-body .grid:nth-child(3){
    height: 50%;
    transform-origin: left;
    top: 70%;
    left: -30%;
    transform: rotate(-10deg);

.inside-content {
    position: relative;
    opacity: 0;
    transition: .5s;
    padding: 40px 10px;
    text-align: center;


.title {
    font-size: 50px;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
} {
    text-transform: capitalize;
    font-size: 15px;
    color: rgb(255, 255, 255);

img {
    width: 100px;
	height: 100px;
	border-radius: 50%;

.card:hover .inside-content {
    opacity: 1;
    transition-delay: 2.5s;