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 Hover Overlay</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-24 p-6 antialiased"> <div class="max-w-7xl w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12"> <!-- Fade Overlay --> <div class="relative group aspect-square rounded-[3rem] overflow-hidden bg-slate-900 shadow-sm hover:shadow-2xl transition-all duration-500"> <img src="https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=800&fit=crop" class="h-full w-full object-cover group-hover:scale-110 group-hover:opacity-40 transition-all duration-700"> <div class="absolute inset-0 flex flex-col items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-500 p-10 text-center space-y-4"> <h3 class="text-2xl font-black text-white tracking-tight">Spectral Mesh</h3> <p class="text-slate-300 text-sm leading-relaxed">Full manifest authorization across all spectral nodes.</p> <button class="px-6 py-2.5 bg-indigo-600 text-white rounded-xl text-[10px] font-black uppercase tracking-widest shadow-lg shadow-indigo-500/20">Initialize</button> </div> </div> <!-- Slide-up Overlay --> <div class="relative group aspect-square rounded-[3rem] overflow-hidden bg-slate-900 shadow-sm hover:shadow-2xl transition-all duration-500"> <img src="https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=800&fit=crop" class="h-full w-full object-cover group-hover:scale-110 transition-transform duration-700"> <div class="absolute inset-x-0 bottom-0 p-10 bg-gradient-to-t from-slate-900 to-transparent translate-y-full group-hover:translate-y-0 transition-transform duration-500"> <span class="text-[9px] font-black text-indigo-400 uppercase tracking-widest">Protocol Index</span> <h3 class="text-2xl font-black text-white tracking-tight mt-1">Logic Handshake</h3> <p class="text-slate-400 text-xs mt-2">Regional deployment manifest synchronization complete.</p> </div> </div> <!-- Frosted Lens Overlay --> <div class="relative group aspect-square rounded-[3rem] overflow-hidden bg-slate-100 shadow-sm hover:shadow-2xl transition-all duration-500"> <img src="https://plus.unsplash.com/premium_photo-1681426687411-21986b0626a8?w=800&fit=crop" class="h-full w-full object-cover group-hover:blur-sm transition-all duration-700"> <div class="absolute inset-8 rounded-[2rem] bg-white/20 backdrop-blur-md border border-white/30 p-10 flex flex-col items-center justify-center scale-90 opacity-0 group-hover:scale-100 group-hover:opacity-100 transition-all duration-500 text-center"> <h3 class="text-xl font-black text-slate-900 tracking-tight">Vanguard Hub</h3> <p class="text-slate-800 text-xs font-bold uppercase tracking-widest mt-2">Sovereign Authority</p> </div> </div> </div> </body> </html>