-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
51 lines (50 loc) · 1.18 KB
/
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
45
46
47
48
49
50
51
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital@1&display=swap');
* {
margin: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
html {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
background-image: linear-gradient(to bottom right, #000000, #070739);
}
body {
perspective: 800px;
}
.btn {
position: relative;
height: 150px;
width: 450px;
transform-style: preserve-3d;
transition: transform 400ms ease-in-out;
transform: translateZ(-75px);
}
.btn:hover {
transform: rotateX(-90deg) translateY(75px);
}
.side {
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 3.5em;
font-weight: bold;
backface-visibility: hidden;
}
.default-side {
background-image: linear-gradient(to bottom right, #f7e8f6 , #fe59d7);
border: 10px solid #9d0b28;
color: #9d0b28;
transform: translateZ(75px);
}
.hover-side {
color: #e5b0ea;
background-image: linear-gradient(to bottom right, #ff004d , #9d0b28);
transform: rotatex(90deg) translateZ(75px);
}