-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathstyle.css
58 lines (51 loc) · 1000 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
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: sans-serif;
background-color: #f8f9fa;
color: #343a40;
overflow: hidden;
}
.image {
border: 1px solid transparent;
//transition: all 250ms cubic-bezier(0, 0.72, 0, 1.02);
}
.image:hover {
border: 1px solid #6741d9;
tranform-origin: center center;
z-index: 2;
cursor: pointer;
}
.animate-in .image:hover {
border: 1px solid transparent;
transform: scale(1);
}
.animate-in {
animation: up-in;
animation-duration: 250ms;
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0, 0.72, 0, 1.02);
will-change: transform;
transform: translate3d(0, -200px, 0);
opacity: 0.5;
}
.animate-in:after {
position: absolute;
top: 32px;
right: calc(5%);
content: 'Close';
color: #6741d9;
font-size: 1rem;
}
@keyframes up-in {
from {
transform: translate3d(0, -200px, 0);
opacity: 0.5;
}
to {
transform: translate3d(0, 0, 0);
opacity: 1;
}
}