-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
79 lines (78 loc) · 1.57 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
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
html,body{
padding:0;
margin:0;
}
.container{
position: relative;
margin: 0 auto;
width: 100vw;
height: 100vh;
background-image: url('./img/test.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
background-size: auto 100%;
cursor: pointer;
overflow: hidden;
}
.content{
position: absolute;
width: 40vmin;
height: 40vmin;
}
.wave{
position: absolute;
top: calc((100% - 10vmin)/2);
left: calc((100% - 10vmin)/2);
width: 10vmin;
height: 10vmin;
border-radius: 50%;
background-image: url('./img/test.jpg');
background-attachment: fixed;
background-position: center center;
opacity: 0;
transition: all .2s;
}
.wave-1{
background-size: auto 103%;
animation: wave 1s ease-out .1s;
animation-fill-mode: forwards;
z-index: 10;
}
.wave-2{
background-size: auto 101%;
animation: wave 1s ease-out .15s;
animation-fill-mode: forwards;
z-index: 20;
}
.wave-3{
background-size: auto 102%;
animation: wave 1s ease-out .2s;
animation-fill-mode: forwards;
z-index: 30;
}
.wave-4{
background-size: auto 100%;
animation: wave 1s ease-out .3s;
animation-fill-mode: forwards;
z-index: 40;
}
@keyframes wave {
0% {
top: calc((100% - 10vmin)/2);
left: calc((100% - 10vmin)/2);
width: 10vmin;
height: 10vmin;
opacity: 1;
}
90% {
opacity: 1;
}
100% {
top: calc((100% - 40vmin)/2);
left: calc((100% - 40vmin)/2);
width: 40vmin;
height: 40vmin;
opacity: 0;
}
}