Skip to content

Commit e67152c

Browse files
authored
📝 Update sstudios-lib-style.main.css
1 parent 365b720 commit e67152c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

lib/css/sstudios-lib-style.main.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,47 @@ body {
290290
.tag:hover::after {
291291
opacity: 1;
292292
}
293+
294+
.flip-card {
295+
perspective: 1000px;
296+
}
297+
298+
.flip-card-inner {
299+
position: relative;
300+
width: 100%;
301+
height: 200px;
302+
transition: transform 0.6s;
303+
transform-style: preserve-3d;
304+
}
305+
306+
.flip-card:hover .flip-card-inner {
307+
transform: rotateY(180deg);
308+
}
309+
310+
.flip-card-front,
311+
.flip-card-back {
312+
position: absolute;
313+
width: 100%;
314+
height: 100%;
315+
backface-visibility: hidden;
316+
border-radius: 0.5rem;
317+
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
318+
}
319+
320+
.flip-card-front {
321+
background-color: #fff;
322+
color: #333;
323+
display: flex;
324+
align-items: center;
325+
justify-content: center;
326+
font-size: 1.5rem;
327+
}
328+
329+
.flip-card-back {
330+
background-color: #6EE7B7;
331+
color: #fff;
332+
display: flex;
333+
align-items: center;
334+
justify-content: center;
335+
transform: rotateY(180deg);
336+
}

0 commit comments

Comments
 (0)