JSFiddle - React, Tailwind, and code Playground

by sungsoonz

HTML

<div id="slider">
  <div>
    <img src="http://immigrationlaw.nz/img/conveyancing_s.png" class="slide">
    <img src="http://immigrationlaw.nz/img/expert_advice.png" class="slide">
    <img src="http://immigrationlaw.nz/img/online_tracking.png" class="slide">
    <img src="http://immigrationlaw.nz/img/free_initial_review.png" class="slide">
    <img src="http://immigrationlaw.nz/img/no_hidden_fee.png" class="slide">
    <img src="http://immigrationlaw.nz/img/cta.png" class="slide">
  </div>
  <img id="logo" src="http://immigrationlaw.nz/img/conveylaw_logo.png">
</div>

CSS

body {
    background: #eee;
  }
  #logo {
    margin: 0 auto;
    display: block;
    position: absolute;
    bottom: 20px;
    left: 80px;
  }

  #slider {
    position: relative;
    text-align: center;
    background: #fff url("http://immigrationlaw.nz/img/bg.png") no-repeat;
    width: 300px;
    height: 320px;
    margin: 0 auto;
  }
  #slider > div {
    position: relative;
  }
  .slide {
    display: block;
    position: absolute;
    opacity: 0;
    top: 50px;
    left: 30px;
  }
  .slide:nth-child(1) {
    -webkit-animation: fade 24s 0s infinite;
    z-index: 60;
  }
  
  .slide:nth-child(2) {
    -webkit-animation: fade 24s 4s infinite;
    z-index: 50;
  }
  
  .slide:nth-child(3) {
    -webkit-animation: fade 24s 8s infinite;
    z-index: 40;
  }
  
  .slide:nth-child(4) {
    -webkit-animation: fade 24s 12s infinite;
    z-index: 30;
  }
  
  .slide:nth-child(5) {
    -webkit-animation: fade 24s 16s infinite;
    z-index: 20;
  }
  
  .slide:nth-child(6) {
    -webkit-animation: fade 24s 20s infinite;
    z-index: 10;
    left: 0;
  }
  
  @-webkit-keyframes hscroll {
    0% {
      margin-left: 0;
    }
    13.33% {
      margin-left: 0;
    }
    28.33% {
      margin-left: -300px;
    }
    44.66% {
      margin-left: -600px;
    }
    59.66% {
      margin-left: -900px;
    }
    74.99% {
      margin-left: -1200px;
    }
    88.99% {
      margin-left: -1500px;
    }
    100% {
      margin-left: -1800px;
    }
  }
  
  @-webkit-keyframes fade {
    0% {
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    15% {
      opacity: 1;
    }
    20% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }