Skip to content

Commit e3bc5d7

Browse files
committed
✨ Add View More button with smooth animation to project cards
- Replace link icons with 'View More' button - Add smooth slide-up animation from bottom - Improve hover effects with modern styling - Perfect centering using absolute positioning - Maintain original project card sizes
1 parent c44d122 commit e3bc5d7

5 files changed

Lines changed: 1687 additions & 3 deletions

File tree

css/style.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,3 +726,55 @@ nav.w3-sidebar .w3-bar-item:hover {
726726
visibility: visible !important;
727727
}
728728
}
729+
730+
/* === View More Button - إضافة جديدة بدون تعديل الأصل === */
731+
.project-overlay {
732+
position: absolute !important;
733+
top: 0 !important;
734+
left: 0 !important;
735+
right: 0 !important;
736+
bottom: 0 !important;
737+
opacity: 0;
738+
background: rgba(0, 0, 0, 0.6);
739+
transition: all 0.4s ease;
740+
z-index: 10;
741+
}
742+
743+
.project-card:hover .project-overlay {
744+
opacity: 1;
745+
}
746+
747+
.view-more-btn {
748+
position: absolute !important;
749+
top: 50% !important;
750+
left: 50% !important;
751+
transform: translate(-50%, -50%) translateY(20px) !important;
752+
display: block !important;
753+
padding: 10px 24px;
754+
background: transparent;
755+
color: white;
756+
text-decoration: none;
757+
border: 1px solid white;
758+
font-family: 'Helvetica Neue', 'Arial', sans-serif;
759+
font-size: 12px;
760+
font-weight: 300;
761+
letter-spacing: 1.5px;
762+
text-transform: uppercase;
763+
transition: all 0.3s ease;
764+
opacity: 0;
765+
border-radius: 2px;
766+
white-space: nowrap;
767+
margin: 0 !important;
768+
}
769+
770+
.project-card:hover .view-more-btn {
771+
opacity: 1;
772+
transform: translate(-50%, -50%) translateY(0) !important;
773+
}
774+
775+
.view-more-btn:hover {
776+
background: white;
777+
color: #333;
778+
transform: translate(-50%, -50%) translateY(-2px) !important;
779+
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
780+
}

0 commit comments

Comments
 (0)