-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
71 lines (69 loc) · 1.53 KB
/
style.css
File metadata and controls
71 lines (69 loc) · 1.53 KB
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000; /* Optional: Set background color */
}
video {
width: 100%;
height: 100%;
object-fit: cover;
}
.slowFade {
display: flex;
align-items: flex-start;
background: #fff;
height: 100vh;
overflow: hidden;
position: relative;
}
.slowFade .slide img {
position: absolute;
min-width: 100%;
min-height: 100%;
height: auto;
background: #000;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
opacity: 0;
transform: scale(1.5) rotate(15deg);
-webkit-animation: slowFade 32s infinite;
animation: slowFade 32s infinite;
}
.slowFade .slide:nth-child(3) img {
-webkit-animation-delay: 8s;
animation-delay: 8s;
}
.slowFade .slide:nth-child(2) img {
-webkit-animation-delay: 16s;
animation-delay: 16s;
}
.slowFade .slide:nth-child(1) img {
-webkit-animation-delay: 24s;
animation-delay: 24s;
}
@keyframes slowFade {
25% {
opacity: 1;
transform: scale(1) rotate(0);
}
40% {
opacity: 0;
}
}
@-webkit-keyframes slowFade {
25% {
opacity: 1;
transform: scale(1) rotate(0);
}
40% {
opacity: 0;
}
}