JSFiddle - React, Tailwind, and code Playground

A-List Successes

by tonytlwu

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.12/handlebars.min.js"></script>
<style>
  .successes:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: -1px;
    clear: both;
  }
  .successes .success {
    float: left;
    width: 215px;
    padding-top: 148px;
    box-sizing: border-box;
    margin: 10px;
    box-shadow: 0px 2px 50px rgba(125, 125, 125, 0.1);
    height: 0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center center;
    position: relative;
    overflow: hidden;
    font-weight: 400;
    font-size: 11px;
  }
  .successes .success .success-details {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
    transition: all 0.2s ease-out;
    color: #fff;
    padding: 5px;
  }
  .successes .success:hover .success-details {
    transform: scale(1);
    opacity: 1;
    backdrop-filter: blur(10px);
  }
  .successes .success .success-details .success-details-content {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
  }
  .successes .success .success-details p {
    margin: 0;
  }
</style>
<div class="successes"></div>
<script type="text/html" id="success-template">
{{#each clients}}
  <div class="success" style="background-image:url('{{thumbnail}}');{{#if backgroundSize}}background-size:{{backgroundSize}}{{/if}}">
    <div class="success-details">
      <div class="success-details-content">
        {{#each jobs}}
        <p>{{this}}</p>
        {{/each}}
      </div>
    </div>
  </div>
{{/each}}
</script>
<script type="text/javascript">
$(document).ready(function () {
  var src = $('#success-template').html();
  var tpl =...