Skip to content

Commit 73980d7

Browse files
Merge pull request #839 from Ruchitha-Reddy29/glassy
green glass cards with floating effect
2 parents cf9a6d9 + 7b9c354 commit 73980d7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

index.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,52 @@
10381038
.hover-scale:hover {
10391039
transform: scale(1.05);
10401040
}
1041+
.card-services {
1042+
position: relative;
1043+
overflow: hidden;
1044+
background: rgba(168, 224, 99, 0.2);
1045+
backdrop-filter: blur(10px);
1046+
-webkit-backdrop-filter: blur(10px);
1047+
border: 1px solid rgba(255, 255, 255, 0.3);
1048+
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
1049+
border-radius: 15px;
1050+
transition: all 0.5s ease-in-out;
1051+
z-index: 1; /* Ensure the content is above the glowing effect */
1052+
}
1053+
1054+
.card-services:hover {
1055+
backdrop-filter: blur(15px);
1056+
-webkit-backdrop-filter: blur(15px);
1057+
background: rgba(168, 224, 99, 0.3);
1058+
border: 1px solid rgba(255, 255, 255, 0.5);
1059+
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
1060+
transform: scale(1.02);
1061+
}
1062+
1063+
.card-services::before {
1064+
content: '';
1065+
position: absolute;
1066+
top: -50%;
1067+
left: -50%;
1068+
width: 200%;
1069+
height: 200%;
1070+
background: conic-gradient(transparent, rgba(144, 238, 144, 0.6), transparent);
1071+
animation: rotate 4s linear infinite;
1072+
z-index: -1; /* Place the glow behind the content */
1073+
opacity: 0; /* Initially hide the glow */
1074+
transition: opacity 0.5s ease-in-out;
1075+
}
1076+
1077+
.card-services:hover::before {
1078+
opacity: 1; /* Show the glow on hover */
1079+
}
1080+
1081+
@keyframes rotate {
1082+
from {
1083+
transform: rotate(0deg);
1084+
}
1085+
to {
1086+
transform: rotate(360deg);
10411087

10421088

10431089

0 commit comments

Comments
 (0)