-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
141 lines (124 loc) · 2.34 KB
/
style.css
File metadata and controls
141 lines (124 loc) · 2.34 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
*::before,
*::after {
box-sizing: border-box;
}
* {
font-family: "Times New Roman", Times, serif;
line-height: 1.4;
margin: 0;
padding: 0;
}
body {
background-color: black;
}
.card_container {
perspective: 500px;
height: 350px;
width: 250px;
margin: 100px auto;
}
.card {
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 1s ease-in-out; /*time take to rorate*/
}
.card_container:hover .card {
transform: rotateY(180deg);
}
.frontcard,
.backcard {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 6px 12px rgba(0, 0, 0, 1);
}
.frontcard {
background-color: white;
padding: 20px;
}
.frontcard img {
/*descendent chlid*/
height: 75px;
width: 200px;
margin: 65px auto;
display: block;
max-width: 80%;
}
.backcard {
position: relative;
padding: 2px;
border-radius: 15px;
background: #38cc25;
background: linear-gradient(
159deg,
rgba(56, 204, 37, 1) 0%,
rgba(9, 9, 121, 1) 43%,
rgb(18, 44, 30) 61%,
rgba(0, 212, 255, 1) 76%,
rgb(33, 9, 86) 88%,
rgb(107, 200, 20) 100%,
rgba(0, 212, 255, 1) 100%
);
transform: rotateY(180deg);
animation: flow-border 3s linear infinite;
background-size: 300% 300%;
}
.backcard_content {
background-color: black;
color: white;
border-radius: 13px;
padding: 16px 20px 12px 20px;
height: 100%;
overflow-y: hidden;
text-align: left;
}
.name {
font-size: 10px;
letter-spacing: 2px;
color: rgb(221, 175, 10);
text-transform: uppercase;
font-size: 300;
}
.title {
font-size: 20px;
font-weight: 700;
margin: 8px 0;
}
.description {
color: white;
margin-bottom: 10px;
font-size: 15px;
}
strong {
color: #38cc25;
}
.btm {
padding: 6px 12px;
border: 1px solid green;
background-color: aqua;
color: black;
border-radius: 8px;
cursor: pointer;
font-weight: 700;
font-size: 10px;
text-decoration: none;
display: inline-block;
margin-top: 5px;
}
.btm:hover {
background-color: #3f5efb;
color: white;
border-color: aqua;
}
@keyframes flow-border {
0% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}