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 retro/vintage image lightbox component with vibrant colors, responsive design, and dark theme support, suitable for portfolios.
Image Lightbox Component
A skeuomorphic image lightbox component designed to mimic real-world counterparts, featuring responsive effects and dark theme support using Tailwind CSS.
Retro Image Lightbox Component
A responsive, simple Image Lightbox Component with Retro/Vintage design, Analogous color scheme, and dark mode support, suitable for blogs and content sites.