Spaces:
Running
Running
File size: 7,201 Bytes
694552a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixel Loader Parade</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style type="text/tailwindcss">
@layer utilities {
.pixel-loader {
@apply relative inline-block w-16 h-16;
}
.pixel {
@apply absolute w-4 h-4 rounded-sm;
}
}
</style>
</head>
<body class="bg-gray-100 min-h-screen p-8">
<header class="text-center mb-12">
<h1 class="text-4xl font-bold text-gray-800 mb-2">Pixel Loader Parade</h1>
<p class="text-gray-600">10 unique pixel art loading animations</p>
</header>
<main class="max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Loader 1: Classic Bouncing Pixel -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader1">
<div class="pixel bg-purple-500 animate-bounce" style="left: 6px; top: 6px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Bouncing Pixel</h3>
</div>
<!-- Loader 2: Expanding Square -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader2">
<div class="pixel bg-blue-500 animate-pulse" style="left: 6px; top: 6px; animation-delay: 0s;"></div>
<div class="pixel bg-blue-500 animate-pulse" style="left: 26px; top: 6px; animation-delay: 0.1s;"></div>
<div class="pixel bg-blue-500 animate-pulse" style="left: 6px; top: 26px; animation-delay: 0.2s;"></div>
<div class="pixel bg-blue-500 animate-pulse" style="left: 26px; top: 26px; animation-delay: 0.3s;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Expanding Square</h3>
</div>
<!-- Loader 3: Pixel Snake -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader3">
<div class="pixel bg-green-500" style="left: 6px; top: 6px;"></div>
<div class="pixel bg-green-500" style="left: 26px; top: 6px;"></div>
<div class="pixel bg-green-500" style="left: 26px; top: 26px;"></div>
<div class="pixel bg-green-500" style="left: 6px; top: 26px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Pixel Snake</h3>
</div>
<!-- Loader 4: Spinning Cross -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader4">
<div class="pixel bg-red-500" style="left: 26px; top: 6px;"></div>
<div class="pixel bg-red-500" style="left: 6px; top: 26px;"></div>
<div class="pixel bg-red-500" style="left: 46px; top: 26px;"></div>
<div class="pixel bg-red-500" style="left: 26px; top: 46px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Spinning Cross</h3>
</div>
<!-- Loader 5: Diagonal March -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader5">
<div class="pixel bg-yellow-500" style="left: 6px; top: 6px;"></div>
<div class="pixel bg-yellow-500" style="left: 16px; top: 16px;"></div>
<div class="pixel bg-yellow-500" style="left: 26px; top: 26px;"></div>
<div class="pixel bg-yellow-500" style="left: 36px; top: 36px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Diagonal March</h3>
</div>
<!-- Loader 6: Pixel Wave -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader6">
<div class="pixel bg-pink-500" style="left: 6px; top: 26px;"></div>
<div class="pixel bg-pink-500" style="left: 16px; top: 16px;"></div>
<div class="pixel bg-pink-500" style="left: 26px; top: 6px;"></div>
<div class="pixel bg-pink-500" style="left: 36px; top: 16px;"></div>
<div class="pixel bg-pink-500" style="left: 46px; top: 26px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Pixel Wave</h3>
</div>
<!-- Loader 7: Pixel Rain -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader7">
<div class="pixel bg-indigo-500" style="left: 6px; top: 6px;"></div>
<div class="pixel bg-indigo-500" style="left: 26px; top: 6px;"></div>
<div class="pixel bg-indigo-500" style="left: 46px; top: 6px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Pixel Rain</h3>
</div>
<!-- Loader 8: Pixel Flip -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader8">
<div class="pixel bg-teal-500" style="left: 6px; top: 6px;"></div>
<div class="pixel bg-teal-500" style="left: 6px; top: 26px;"></div>
<div class="pixel bg-teal-500" style="left: 26px; top: 6px;"></div>
<div class="pixel bg-teal-500" style="left: 26px; top: 26px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Pixel Flip</h3>
</div>
<!-- Loader 9: Pixel Orbit -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader9">
<div class="pixel bg-orange-500" style="left: 26px; top: 6px;"></div>
<div class="pixel bg-orange-500" style="left: 46px; top: 26px;"></div>
<div class="pixel bg-orange-500" style="left: 6px; top: 26px;"></div>
<div class="pixel bg-orange-500" style="left: 26px; top: 46px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Pixel Orbit</h3>
</div>
<!-- Loader 10: Pixel Heartbeat -->
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="pixel-loader" id="loader10">
<div class="pixel bg-rose-500" style="left: 16px; top: 6px;"></div>
<div class="pixel bg-rose-500" style="left: 6px; top: 16px;"></div>
<div class="pixel bg-rose-500" style="left: 26px; top: 16px;"></div>
<div class="pixel bg-rose-500" style="left: 16px; top: 26px;"></div>
</div>
<h3 class="mt-4 text-lg font-semibold">Pixel Heartbeat</h3>
</div>
</main>
<footer class="text-center mt-12 text-gray-500">
<p>Click any loader to see it in action!</p>
</footer>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |