-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
94 lines (80 loc) · 1.62 KB
/
index.css
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
body {
background: #f3f3f3;
font-family: sans-serif;
}
.card-container {
display: flex;
}
@media only screen and (max-width: 1000px) {
.card-container {
flex-direction: column;
}
}
.card2 {
margin: 2rem;
padding: 1rem 2rem;
color: #f3f3f3;
background: linear-gradient(30deg, red 0%, orange 100%);
border-radius: 10px;
box-shadow: 1rem 1rem 0px #333;
transition: all 200ms;
position: relative;
cursor: pointer;
}
.card2:hover {
transform: translateY(-1rem) scale(1.05);
box-shadow: 1.2rem 2rem 0px #333;
}
.card2 h3 {
margin-bottom: 3rem;
}
.card {
margin: 2rem;
padding: 1rem 2rem;
color: #f3f3f3;
background: rgb(46, 46, 47);
border-radius: 10px;
transition: all 200ms;
position: relative;
overflow: hidden;
}
.card p {
color: #dddddd;
}
.card:hover {
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
transform: scale(1.05);
}
.card h3 {
margin-bottom: 3rem;
}
.card:after {
content: "";
position: absolute;
top: -210%;
left: -310%;
width: 300%;
height: 300%;
opacity: 0;
background: rgba(255, 255, 255, 0.13);
background: linear-gradient(
to right,
rgba(255, 255, 255, 0.0) 0%,
rgba(255, 255, 255, 0.1) 77%,
rgba(255, 255, 255, 0.25) 92%,
rgba(255, 255, 255, 0.0) 100%
);
}
.card {
position: relative;
overflow: hidden;
cursor: pointer;
}
.card:hover:after {
opacity: 1;
top: -30%;
left: -30%;
transition-property: left, top, opacity;
transition-duration: 0.8s, 0.8s, 0.16s;
transition-timing-function: ease;
}