File size: 1,207 Bytes
06f5c28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* app.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Card flip styles based on this CodePen example: https: //codepen.io/ananyaneogi/pen/Ezmyeb */
.flip-card {
	background-color: transparent;
	width: 144px;
	height: 144px;
	perspective: 1000px;
	cursor: pointer;
}

.flip-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.4s;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	-moz-backface-visibility: hidden;
}

.flip-card:focus {
	outline: 0;
}

/*.flip-card:hover .flip-card-inner {
	transform: rotateY(180deg);
}*/

.flip-rotate-y-180 {
	transform: rotateY(180deg);
}

.flip-cleared {
	opacity: 0.6;
}

.flip-card-front,
.flip-card-back {
	position: absolute;
	width: 100%;
	height: 100%;
}

.flip-card-front,
.flip-card-back,
.flip-card-back img {
	border-radius: 20px;
}

.flip-card-front {
	background: #3cdd8c;
	color: white;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.flip-card-back {
	background: linear-gradient(to right, #4364f7, #6fb1fc);
	color: white;
	transform: rotateY(180deg);
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}