Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Save Automatically?

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.

HTML

              
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.plrjs.com/player/e23k64nfeat8r/2xfqkf21wtf7.js" type="text/javascript"></script>

<div class="container">
  <div class="card" >
    <div class="front">
      <img src="https://freight.cargo.site/w/400/q/75/i/b8a850b4542a4d8548d5f09a30410965795141a85f78c1139f40bffa2764a869/forest.png" width="250px" height="250px">
    </div>
    <div class="back">
<div id="endless1"></div>
<script>
   var player = new Playerjs({id:"endless1", file:"https://files.cargocollective.com/c673565/forest.mp3", poster:""});
</script>

    </div>
  </div>
</div>

<div class="container">
  <div class="card">
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/9dae6f12d7674e1891d749068aedb2df0a64e8b20bff9ee475d5553c878c2289/jaws.png" width="250px" height="250px">
    </div>
    <div class="back">
    <div id="endless"></div>
<script>
   var player = new Playerjs({id:"endless", file:"https://files.cargocollective.com/c673565/jaws.mp3", poster:""});
</script>

    </div>
  </div>
</div>

<div class="container">
  <div class="card">
    <div class="front">
      <img src="https://freight.cargo.site/w/400/q/75/i/3f344b3e4b074dca5884e551403c980309a8250dbba63f87d22e52275dbe67e8/mirror.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless3"></div>
<script>
   var player = new Playerjs({id:"endless3", file:"https://files.cargocollective.com/c673565/mirror.mp3", poster:"" });
</script>

    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
    <img src="https://freight.cargo.site/w/400/q/75/i/710339eb5c9378eb2e34efeead902aea7d97c14cd83947920801d81d7dc9a9e9/elevators.png" width="250px" height="250px">    </div>
    <div class="back">
      <div id="endless4"></div>
<script>
   var player = new Playerjs({id:"endless4", file:"https://files.cargocollective.com/c673565/elevating.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card">
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/57be34314f4d634fa76bdb7994aaff9ddd887cc1f7d7f218beae3dde7cc467b6/sun.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless5"></div>
<script>
   var player = new Playerjs({id:"endless5", file:"https://files.cargocollective.com/c673565/sun.mp3", poster:""});
</script>
    </div>
  </div>
</div>


<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/25f06bdff00babe6f78fedc3ee4996411feb799e67cfb89cd796f192dba8723f/diving.png" width="250px" height="250px">
    </div>
    <div class="back">
       <div id="endless6"></div>
<script>
   var player = new Playerjs({id:"endless6", file:"https://files.cargocollective.com/c673565/waves.mp3", poster:""});
</script>

    </div>
  </div>
</div>

<div class="container">
  <div class="card"  >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/af0a97e8a1c8e8d69545483d5faf8797571f954af8644113d385088c726ad8d1/coll.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless17"></div>
<script>
   var player = new Playerjs({id:"endless17", file:"https://files.cargocollective.com/c673565/collectiveclap.mp3", poster:""});
</script>

    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/e59502df9726fb4b02439835acd56e9e5e0119974c6126522d461a0d1033db6e/connected.png" width="250px" height="250px">
    </div>
    <div class="back">
       <div id="endless8"></div>
<script>
   var player = new Playerjs({id:"endless8", file:"https://files.cargocollective.com/c673565/connected.mp3", poster:""});
</script>

    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/b1620258e8f8bad2a2f1a2e2f3ba3fdd090e89caa976072018edbc8aa3085553/waters.png" width="250px" height="250px">
    </div>
    <div class="back">
     <div id="endless9"></div>
<script>
   var player = new Playerjs({id:"endless9", file:"https://files.cargocollective.com/c673565/waters.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card"  onclick="flip(event)">
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/b30ed21050db6bffa159d7d54bc3fa8647a176092fd3204972431c11ee8c2860/clouds.png" width="250px" height="250px">
    </div>
    <div class="back">
       <div id="endless10"></div>
<script>
   var player = new Playerjs({id:"endless10", file:"https://files.cargocollective.com/c673565/chaser.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card"  onclick="flip(event)">
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/4770bfb5da21b47f2f8c338c22ea3f380bf3c4a55b3a9453f31888cdfc60d541/translator.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless11"></div>
<script>
   var player = new Playerjs({id:"endless11", file:"/https://files.cargocollective.com/c673565/translator.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/5dd51e0134238dca91447c00c1215cb8a90d9e9a287f89ad4aa784a0d9c72b1e/avalanche.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless12"></div>
<script>
   var player = new Playerjs({id:"endless12", file:"https://files.cargocollective.com/c673565/avalanche.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/21654326735eaa354fbd38f0449ccfe83c0cfee91033e812364e5c8d79c093e7/tummy.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless13"></div>
<script>
   var player = new Playerjs({id:"endless13", file:"https://files.cargocollective.com/c673565/blues.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/4fd7f1a3c6ab901fd0363218ee528c0f1c3107debfcd475c8a08a321dd882d7b/observer.png" width="250px" height="250px">
    </div>
    <div class="back">
      <div id="endless14"></div>
<script>
   var player = new Playerjs({id:"endless14", file:"https://files.cargocollective.com/c673565/observer.mp3", poster:""});
</script>
    </div>
  </div>
</div>

<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/31332225e47129b15fe1fc45626376df7e25916f974d93b8b520fccf5ad36a45/blisss.png" width="250px" height="250px">
    </div>
    <div class="back">
        <div id="endless15"></div>
<script>
   var player = new Playerjs({id:"endless15", file:"https://files.cargocollective.com/c673565/bliss.mp3", poster:""});
</script>
    </div>
  </div>
</div>


<div class="container">
  <div class="card"  onclick="flip(event)">
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/7086862ec9427784544edd5b97bdea99a3b972a95e9c1392de934fe3f9e79e05/chaos.png" width="250px" height="250px">
    </div>
    <div class="back">
    <div id="endless16"></div>
<script>
   var player = new Playerjs({id:"endless16", file:"https://files.cargocollective.com/c673565/walker.mp3", poster:""});
</script>

    </div>
    </div>
  </div>


<div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/5e9e6124a5763583d3cb527c17030950592b3258c81680b0f4c6785a531b0630/wander.png" width="250px" height="250px">
    </div>
    <div class="back">
        <div id="endless7"></div>
<script>
   var player = new Playerjs(
     {id:"endless7",
      file:[ {"title":"wander","file":"https://files.cargocollective.com/c673565/wander-pre.mp3", poster:""}, {"title":"wonder","file":"https://files.cargocollective.com/c673565/wanderwonder.mp3", poster:"/img/performance/17wanderwonder.jpg"}
           ]
     });
</script>



    </div>
  </div>
</div>

    <div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/6e282dde99e3912d8f81bb0d2620b7ca792fa1ee26c3f17b8945f7e8e0013db7/breather.png" width="250px" height="250px">
    </div>
    <div class="back">
    <div id="endless18"></div>
<script>
   var player = new Playerjs({id:"endless18", file:"https://files.cargocollective.com/c673565/breather.mp3", poster:""});
</script>

    </div>
  </div>
</div>



  <div class="container">
  <div class="card" >
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/28635c24daf6e0aae32a23c8a330b7084234b801943a56d7b628db7ed14239bc/nomicva.png" width="250px" height="250px">
    </div>
    <div class="back">
    <div id="endless19"></div>
<script>
   var player = new Playerjs({id:"endless19", file:"https://files.cargocollective.com/c673565/metronomic.mp3", poster:""});
</script>

    </div>
  </div>
</div>

  <div class="container">
  <div class="card">
    <div class="front">
     <img src="https://freight.cargo.site/w/400/q/75/i/0bf38cb6e6658348daab9b65116d12d67d893e06fba6411c0a1280a7a3b90833/departure.png" width="250px" height="250px">
    </div>
    <div class="back">
    <div id="endless20"></div>
<script>
   var player = new Playerjs({id:"endless20", file:"https://files.cargocollective.com/c673565/departure.mp3", poster:""});
</script>

    </div>
    </div>
</div>


<div class="hey">


</div>


              
            
!

CSS

              
                @-ms-viewport{
  width: device-width;
}

@import url('https://fonts.googleapis.com/css?family=Merriweather&display=swap');

/* notes: text images smaller, new performance names, twirls, circles etc. space !!!*/

body {
  font-family: 'Merriweather', serif;
  font-size: 12px;
  text-align: center;
  background-color: black;
  color: white;
 
/*background-color: #378b29;
background-image: linear-gradient(315deg, #378b29 0%, #74d680 74%);*/


  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

a {
  color: white;
}

div {
  width: 100%;
  height: 100%;
}

.container {
  margin: 10px;
  width: 330px;
  height: 330px;
  perspective: 1000px;
}

.card {

  transition: transform 2s;
   transform: rotateY(0);
  transform-style: preserve-3d;
  cursor: pointer;
}
.flipped{
   transition: transform 2s;
  transform: rotateY(180deg);
}
.front, .back {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-backface-visibility: hidden;
}

.front {
  border-bottom: 0px solid white;

}

.front:hover {
 border: 0px solid blue;
}

.back {
  border: 0px solid green;
  background: black;
  transform: rotateY(180deg);
}

.back:hover {
  border-bottom: 0px solid green;


}



.hey {
  margin: 20px;
  color: white;
  font-size: 14px;
  border: 0px solid;
  border-color: white;

}

              
            
!

JS

              
                var player = new Playerjs({
   id:"player",
   file:[
      {"title":"Title","file":"URL"},
      {"title":"Title","file":"URL"}
   ]
});


var cards = document.querySelectorAll(".card");
  for ( var i  = 0, len = cards.length; i < len; i++ ) {
    var card = cards[i];
    clickListener2( card );
  }

  function clickListener2(card) {
    card.addEventListener( "click", function(event) {
       var alreadyFlipped = $(this).hasClass('flipped');
       jQuery('.card').removeClass('flipped'); //flip back all
      
       if (!alreadyFlipped){
	       $(this).addClass('flipped'); //flip this one if it needs to
       }
      
      
      
           });
      }



              
            
!
999px

Console