title: Multiple Card Flip jQuery
body: <p>I'm looking to have multiple cards flip individually, but I'm not that well versed in jQuery/JS and I'm having issues with figuring out the code, and could use a little help. Also, the tiles aren't flipping back over when clicked.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.js-click').on('click', function() {
    $('.card').not(this).removeClass('flipped');
    $('.card').toggleClass('flipped');
  });
  $('.js-click1').on('click', function() {
    $('.card').not(this).removeClass('flipped');
    $('.card').toggleClass('flipped');
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.flipContainer {
    width: 260px;
    height: 200px;
    position: relative;
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    -o-perspective: 800px;
    perspective: 800px;
  }
  
  .card {
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-transition: -webkit-transform 1s;
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    transition: transform 1s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: 50% 50%;
  }
  
  .card div {
    display: block;
    height: 100%;
    width: 100%;
    line-height: 200px;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    position: absolute;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .card .front {
    background: red;
  }
  
  .card .back {
    background: blue;
    -webkit-transform: rotateY( 180deg);
    -moz-transform: rotateY( 180deg);
    -o-transform: rotateY( 180deg);
    transform: rotateY( 180deg);
  }
  
  .card.flipped {
    -webkit-transform: rotateY( 180deg);
    -moz-transform: rotateY( 180deg);
    -o-transform: rotateY( 180deg);
    transform: rotateY( 180deg);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;section class="flipContainer"&gt;
    &lt;div class="card"&gt;
      &lt;button class="js-click"&gt;+&lt;/button&gt;
      &lt;div class="front"&gt;Custom Installation&lt;/div&gt;
      &lt;div class="back"&gt;Custom Installation details&lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;
  &lt;section class="flipContainer"&gt;
    &lt;div class="card"&gt;
      &lt;button class="js-click1"&gt;+&lt;/button&gt;
      &lt;div class="front"&gt;Custom Installation&lt;/div&gt;
      &lt;div class="back"&gt;Custom Installation details&lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>