-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
44 lines (42 loc) · 842 Bytes
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Ebrima", "Arial", sans-serif;
}
body {
background-color: rgb(85, 85, 161);
padding-top: 3%;
}
#wrapper {
width: 400px;
aspect-ratio: 1;
margin: 0 auto;
perspective: 800px;
}
.hover-card {
width: 100%;
height: 100%;
background-color: rgb(233, 158, 19);
border-radius: .3rem;
padding: 3%;
transform-style: preserve-3d;
pointer-events: none;
}
h1 {
font-size: 4rem;
transition: transform .5s, text-shadow .5s;
text-align: center;
pointer-events: none;
}
p {
font-size: 1.5rem;
margin: 4% 0;
transition: transform .5s, text-shadow .5s;
pointer-events: none;
}
#wrapper:hover .hover-card p,
#wrapper:hover .hover-card h1{
transform: translateZ(100px);
text-shadow: 0 0 5px #333;
}