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 Minimal Pagination</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 flex justify-center min-h-screen pt-16 p-6 antialiased" x-data="{ current: 4, total: 10 }"> <div class="flex items-center gap-12"> <button @click="current = Math.max(1, current - 1)" class="text-[10px] font-black uppercase tracking-[0.3em] transition-all cursor-pointer flex items-center gap-4 group" :class="current === 1 ? 'text-slate-200 pointer-events-none' : 'text-slate-400 hover:text-indigo-600'" > <svg class="h-4 w-4 group-hover:-translate-x-2 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M15 19l-7-7 7-7" /></svg> PREV </button> <div class="flex items-baseline gap-2"> <span class="text-3xl font-black text-slate-900 tracking-tighter" x-text="current.toString().padStart(2, '0')"></span> <span class="text-xs font-bold text-slate-300 uppercase tracking-widest italic">/ Manifest <span x-text="total"></span></span> </div> <button @click="current = Math.min(total, current + 1)" class="text-[10px] font-black uppercase tracking-[0.3em] transition-all cursor-pointer flex items-center gap-4 group" :class="current === total ? 'text-slate-200 pointer-events-none' : 'text-slate-400 hover:text-indigo-600'" > NEXT <svg class="h-4 w-4 group-hover:translate-x-2 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M9 5l7 7-7 7" /></svg> </button> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>