Image Lightbox Component
A responsive image lightbox component with Neumorphism design style and dark theme support using Tailwind CSS.
HTML Code
<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
<div class="relative group">
<img src="https://picsum.photos/300/200" alt="Thumbnail" class="w-48 h-32 rounded-lg shadow-neu transition-transform duration-300 group-hover:scale-105" />
<div class="hidden absolute top-0 left-0 right-0 bottom-0 bg-white bg-opacity-75 dark:bg-gray-800 rounded-lg shadow-neu group-hover:block">
<div class="flex items-center justify-center h-full">
<img src="https://picsum.photos/600/400" alt="Lightbox image" class="max-w-full h-auto rounded-lg" />
</div>
</div>
</div>
</div>
<style>
.shadow-neu {
box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.2),
-8px -8px 20px rgba(255, 255, 255, 0.9);
}
</style>
Related Components
Image Lightbox Component
A responsive image lightbox component designed in dark mode using Tailwind CSS. It features a dark background, opacity effects, and responsive designs to accommodate various screen sizes.
Image Lightbox Component
A simple, responsive, glassmorphism-styled image lightbox component with ocean/blue tones for social media, supporting dark mode.
Image Lightbox Component
A complex, responsive image lightbox component with a 'paper/print-inspired' design, jewel-tone color scheme, and dark mode support, suitable for music/audio platforms. It features rich interactive elements.