|
1038 | 1038 | .hover-scale:hover {
|
1039 | 1039 | transform: scale(1.05);
|
1040 | 1040 | }
|
| 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); |
1041 | 1087 |
|
1042 | 1088 |
|
1043 | 1089 |
|
|
0 commit comments