DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Gallery Hover Name - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Gallery Hover Name
sachin007
Jan 26, 2026
6
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<section class="gallery-section"> <div class="bg-glow"></div> <div class="gallery-container"> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=1" alt="Art"> <div class="overlay"> <span>Abstract Art</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=2" alt="Nature"> <div class="overlay"> <span>Wilderness</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=3" alt="Urban"> <div class="overlay"> <span>Cyber City</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=4" alt="Design"> <div class="overlay"> <span>Minimalism</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=1" alt="Art"> <div class="overlay"> <span>Abstract Art</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=2" alt="Nature"> <div class="overlay"> <span>Wilderness</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=3" alt="Urban"> <div class="overlay"> <span>Cyber City</span> </div> </div> <div class="gallery-item"> <img src="https://picsum.photos/600/800?random=4" alt="Design"> <div class="overlay"> <span>Minimalism</span> </div> </div> </div> </section>
1
:root { --neon-blue: #00d2ff; --neon-purple: #9d50bb; } body { margin: 0; overflow-x: hidden; background-color: #f8f9fa; font-family: 'Inter', sans-serif; } /* 1. Moving Background Animation */ .gallery-section { position: relative; padding: 80px 20px; min-height: 100vh; display: flex; justify-content: center; overflow: hidden; } .bg-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(0, 210, 255, 0.1) 0%, rgba(157, 80, 187, 0.1) 30%, transparent 70%); animation: moveBG 15s linear infinite; z-index: -1; } @keyframes moveBG { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 2. Gallery Grid Layout */ .gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; width: 100%; perspective: 1000px; /* Essential for 3D effect */ } /* 3. Image Card Styling */ .gallery-item { position: relative; height: 350px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: white; transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); cursor: pointer; transform: translateZ(0); } .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; } /* 4. Hover Effects (3D & Zoom) */ .gallery-item:hover { transform: translateY(-15px) rotateX(5deg) rotateY(5deg); box-shadow: 0 30px 60px rgba(0, 210, 255, 0.2); } .gallery-item:hover img { transform: scale(1.1); } /* 5. Glassmorphism Overlay */ .overlay { position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 15px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; } .gallery-item:hover .overlay { opacity: 1; transform: translateY(0); } .overlay span { color: white; font-weight: 600; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!