Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS Progress Bar</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 flex items-center justify-center min-h-screen p-6 antialiased" x-data="{ progress: 74 }"> <div class="w-full max-w-md bg-white p-10 rounded-[2.5rem] shadow-3xl border border-white"> <div class="flex justify-between items-end mb-6"> <div> <h3 class="text-lg font-bold text-slate-800 tracking-tight">Global Network Sync</h3> <p class="text-[11px] text-slate-400 mt-1 italic font-medium uppercase tracking-widest">Node Distribution</p> </div> <span class="text-3xl font-black text-indigo-600 tracking-tighter" x-text="progress + '%'"></span> </div> <!-- Progress Track --> <div class="h-4 bg-slate-50 rounded-full overflow-hidden shadow-inner border border-slate-100/50"> <div class="h-full bg-indigo-600 rounded-full transition-all duration-1000 ease-out shadow-[0_0_20px_rgba(79,70,229,0.3)]" :style="'width: ' + progress + '%'" ></div> </div> <div class="mt-10 flex justify-center"> <button @click="progress = Math.floor(Math.random() * 100)" class="text-xs font-bold text-slate-400 hover:text-indigo-600 transition-colors cursor-pointer flex items-center gap-2"> <svg class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" /></svg> Recalibrate Sync </button> </div> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>