-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
58 lines (50 loc) · 945 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.card {
padding: 20px;
width: 350px;
box-shadow: 0 0 5px 0px #e2e2e2;
position: relative;
cursor: pointer;
border-radius: 8px;
}
.card:after,
.card:before {
content: "";
position: absolute;
bottom: 0;
top: 0;
left: 0;
right: 0;
transition: transform .3s ease-in-out;
border-radius: 8px;
}
.card:before {
border-left: 1px solid #000000;
border-right: 1px solid #000000;
transform: scaleY(0);
}
.card:after {
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
transform: scaleX(0);
}
.card:hover:before {
transform: scaleY(1);
}
.card:hover:after {
transform: scaleX(1);
}
.text {
margin: 20px auto;
}