Carousel Tailwind css
Web2tailwind.com

Output

Code

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.css">
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">

    <script src="https://unpkg.com/swiper/swiper-bundle.js"></script>
    <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
    <link href="https://unpkg.com/[email protected]^1.0/dist/tailwind.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script>
    <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Roboto&display=swap" rel="stylesheet">
</head>

<body style="font-family:Roboto">
    <div class="flex justify-center items-center h-screen md:-mx-4">
        <div class="w-full mx-20 bg-gray-100" style="background-image:url(http://bugspatrol.ancorathemes.com/wp-content/uploads/2016/07/main_bg.jpg)">
          <h2 class="text-center font-bold text-3xl text-gray-100 pt-10">HAPPY CLIENTS ABOUT US</h2>            
<div class="swiper-container w-100">
    <!-- Additional required wrapper -->
    <div class="swiper-wrapper">
        <!-- Slides -->
        <div class="swiper-slide px-20 py-6 flex items-center justify-center">
          <div class="py-6">
          <div class="flex jusify-center py-4 text-gray-200 text-center">
          I have used Bugs Patrol for the past 10 years. Their professionalism, knowledge, thoroughness and fast response are second to none. I have used Bugs Patrol services for my home and business. Great job and guys.
          </div>
          <div class="flex justify-center py-4">
            <img class="h-20 w-20 rounded-full" src="http://bugspatrol.ancorathemes.com/wp-content/uploads/2016/07/testimonials-3-75x75.jpg">
        </div>
        <div class="text-sm flex justify-center text-gray-300">Julia Bredshow, NY</div>
        </div>
      </div>
    <div class="swiper-slide px-20 flex items-center justify-center">
          <div class="py-6">
          <div class="flex jusify-center py-4 text-gray-200 text-center">
          I have used Bugs Patrol for the past 10 years. Their professionalism, knowledge, thoroughness and fast response are second to none. I have used Bugs Patrol services for my home and business. Great job and guys.
          </div>
          <div class="flex justify-center py-4">
            <img class="h-20 w-20 rounded-full" src="http://bugspatrol.ancorathemes.com/wp-content/uploads/2016/07/testimonials-3-75x75.jpg">
        </div>
        <div class="text-sm flex justify-center text-gray-300">Julia Bredshow, NY</div>
        </div>
      </div>
        
    </div>
    <!-- If we need navigation buttons -->
    <div class="swiper-button-prev bg-white w-16 h-16 text-xs rounded-full text-green-500 mx-10"></div>
    <div class="swiper-button-next bg-white w-16 h-16 text-xs rounded-full text-green-500 mx-10"></div>
    <!-- If we need pagination -->
    <div class="swiper-pagination"></div>   
</div
        </div>
    </div>
<script>
  var mySwiper = new Swiper ('.swiper-container', {
    // Optional parameters
    direction: 'horizontal',
    loop: true,

    // If we need pagination
    pagination: {
      el: '.swiper-pagination',
    },

    // Navigation arrows
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },

    // And if we need scrollbar
    scrollbar: {
      el: '.swiper-scrollbar',
    },
  })
  </script>
</body>

</html>
© 2019 - 2020 Web2tailwind.com