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 Image Modal</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-100 flex items-center justify-center min-h-screen p-6 antialiased" x-data="{ open: true }"> <div class="cursor-pointer group" @click="open = true"> <div class="h-64 w-64 rounded-[2.5rem] overflow-hidden shadow-2xl border-4 border-white group-hover:scale-105 transition-transform duration-500"> <img src="https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=800" alt="Preview" class="h-full w-full object-cover"> </div> <p class="text-center mt-6 text-[10px] font-black text-slate-400 uppercase tracking-widest italic group-hover:text-indigo-600 transition-colors">Manifest Detail Alpha</p> </div> <!-- Image Expansion Modal --> <div x-show="open" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-20 bg-slate-900/95 backdrop-blur-xl" style="display: none;" @keydown.escape.window="open = false" > <!-- Close Button --> <button @click="open = false" class="absolute top-10 right-10 h-14 w-14 bg-white/10 text-white rounded-2xl flex items-center justify-center hover:bg-white/20 hover:scale-110 transition active:scale-95 cursor-pointer z-10"> <svg class="h-8 w-8" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M6 18L18 6M6 6l12 12"/></svg> </button> <div class="relative max-w-7xl w-full h-full flex flex-col items-center justify-center"> <img x-show="open" x-transition:enter="transition ease-out duration-500 transform" x-transition:enter-start="scale-90 opacity-0" x-transition:enter-end="scale-100 opacity-100" src="https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600" class="max-w-full max-h-full object-contain rounded-[3rem] shadow-[0_40px_100px_-15px_rgba(0,0,0,0.5)] border border-white/10" > <div class="absolute bottom-[-60px] text-center w-full"> <h3 class="text-xl font-black text-white tracking-widest italic uppercase">Network Infrastructure.</h3> <p class="text-[10px] font-bold text-indigo-400 uppercase tracking-[0.4em] mt-2">High Resolution Manifest Sync</p> </div> </div> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>