-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghost.css
70 lines (65 loc) · 1.12 KB
/
ghost.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
*{
/* 初始化 */
margin:0;
padding:0;
}
.container{
/* 100%窗口高度 */
height:100vh;
/* 彈性佈局 居中 */
display: flex;
justify-content: center;
align-items: center;
/* 溢出隱藏 */
overflow: hidden;
background-color: #0d1117;
}
h1{
display: flex;
font-family: 黑体;
font-size: 100px;
color: #c9d1d9;
}
h1 span{
/* 過度動畫 */
transition:1.5s;
}
h1:hover span{
/* 模糊 */
filter:blur(10px);
/* 不透明度 */
opacity: 0;
/* 放大 */
transform:scale(2);
}
/* 接下來為每一個span元素設置動畫延時時間 */
h1 span:nth-child(1){
transition-delay:0.1s;
}
h1 span:nth-child(2){
transition-delay:0.2s;
}
h1 span:nth-child(3){
transition-delay:0.3s;
}
h1 span:nth-child(4){
transition-delay:0.4s;
}
h1 span:nth-child(5){
transition-delay:0.5s;
}
h1 span:nth-child(6){
transition-delay:0.6s;
}
h1 span:nth-child(7){
transition-delay:0.7s;
}
h1 span:nth-child(8){
transition-delay:0.8s;
}
h1 span:nth-child(9){
transition-delay:0.9s;
}
h1 span:nth-child(10){
transition-delay:1s;
}