Home / Components / Alert Components / Tailwind CSS Complex Loading Skeleton

Tailwind CSS Complex Loading Skeleton

Tailwind CSS Complex Loading Skeleton component

<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mt-4 w-full">
  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg">
	<div class="animate-pulse flex flex-col">
	  <div class="rounded w-full h-52 bg-gray-200"></div>
	  <div class="flex flex-col mt-5">
		<div class="w-full h-5 bg-gray-200 rounded"></div>
		<div class="mt-2 w-10/12 h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-8/12 h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="grid grid-cols-2 mt-5 gap-x-2 gap-y-1">
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="flex items-center mt-5">
		<div>
		  <div class="rounded-full bg-gray-200 w-10 h-10"></div>
		</div>
		<div class="flex justify-between w-full ml-3">
		  <div class="w-5/12 h-3 bg-gray-200 rounded"></div>
		  <div class="w-2/12 h-3 bg-gray-200 rounded"></div>
		</div>
	  </div>
	</div>
  </div>

  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg">
	<div class="animate-pulse flex flex-col">
	  <div class="rounded w-full h-52 bg-gray-200"></div>
	  <div class="flex flex-col mt-5">
		<div class="w-full h-5 bg-gray-200 rounded"></div>
		<div class="mt-2 w-10/12 h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-8/12 h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="grid grid-cols-2 mt-5 gap-x-2 gap-y-1">
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="flex items-center mt-5">
		<div>
		  <div class="rounded-full bg-gray-200 w-10 h-10"></div>
		</div>
		<div class="flex justify-between w-full ml-3">
		  <div class="w-5/12 h-3 bg-gray-200 rounded"></div>
		  <div class="w-2/12 h-3 bg-gray-200 rounded"></div>
		</div>
	  </div>
	</div>
  </div>

  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg">
	<div class="animate-pulse flex flex-col">
	  <div class="rounded w-full h-52 bg-gray-200"></div>
	  <div class="flex flex-col mt-5">
		<div class="w-full h-5 bg-gray-200 rounded"></div>
		<div class="mt-2 w-10/12 h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-8/12 h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="grid grid-cols-2 mt-5 gap-x-2 gap-y-1">
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="flex items-center mt-5">
		<div>
		  <div class="rounded-full bg-gray-200 w-10 h-10"></div>
		</div>
		<div class="flex justify-between w-full ml-3">
		  <div class="w-5/12 h-3 bg-gray-200 rounded"></div>
		  <div class="w-2/12 h-3 bg-gray-200 rounded"></div>
		</div>
	  </div>
	</div>
  </div>

  <div class="relative p-4 w-full bg-white rounded-lg overflow-hidden shadow hover:shadow-md rounded-lg">
	<div class="animate-pulse flex flex-col">
	  <div class="rounded w-full h-52 bg-gray-200"></div>
	  <div class="flex flex-col mt-5">
		<div class="w-full h-5 bg-gray-200 rounded"></div>
		<div class="mt-2 w-10/12 h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-8/12 h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="grid grid-cols-2 mt-5 gap-x-2 gap-y-1">
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
		<div class="mt-2 w-full h-3 bg-gray-200 rounded"></div>
	  </div>

	  <div class="flex items-center mt-5">
		<div>
		  <div class="rounded-full bg-gray-200 w-10 h-10"></div>
		</div>
		<div class="flex justify-between w-full ml-3">
		  <div class="w-5/12 h-3 bg-gray-200 rounded"></div>
		  <div class="w-2/12 h-3 bg-gray-200 rounded"></div>
		</div>
	  </div>
	</div>
  </div>
</div>
                    

3 years ago

4.8K

How to install and add to your project?

Step 1: Include Scripts and Styling CDN inside the head tag

<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css">
<script defer src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script>

Step 2: Copy the Tailwind CSS Complex Loading Skeleton component code above as you need it

Step 3: Preview the component in your browser 🚀

Step 4: For production release make sure to use the official Tailwind CSS Installation

You are done 🎉

Credits or Attribution

If you enjoy using our components, please do give us (PostSrc) credit in your project footer section or about page. Copy the HTML below for attribution.

<a href="https://postsrc.com/components" target="_blank" rel="noopener" title="PostSrc Components - Collection of Tailwind CSS components for everyone to use"><img style="width: auto; height: 46px;" src="https://postsrc.com/img/attr.png" alt="PostSrc logo"></a>

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this