forked from Godsont/Dynamic-Island-Animation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (70 loc) · 1.39 KB
/
Copy pathstyle.css
File metadata and controls
83 lines (70 loc) · 1.39 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
72
73
74
75
76
77
78
79
80
81
82
83
* {
box-sizing: border-box;
}
.dynamic-island {
margin: 32px auto;
font-family: "Inter", sans-serif;
position: relative;
}
.dynamic-island .pill {
margin: 100px auto;
background: #000;
width: 80px;
height: 20px;
border-radius: 60px;
cursor: pointer;
transition: all 700ms cubic-bezier(0.32, 0.7, 0.22, 1.2);
}
.dynamic-island.active .pill {
width: 360px;
height: 60px;
}
.dynamic-island .container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: #fff;
opacity: 0;
filter: blur(10px);
width: 346px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) scale(0.2);
pointer-events: none;
transition: all 700ms cubic-bezier(0.32, 0.7, 0.22, 1.2);
}
.dynamic-island .container.active {
opacity: 1;
filter: blur(0);
transform: translate(-50%, -50%) scale(1);
}
.dynamic-island .left {
display: flex;
align-items: center;
gap: 10px;
}
.dynamic-island .photo {
height: 50px;
}
.dynamic-island .photo img {
height: 100%;
border-radius: 50%;
vertical-align: middle;
}
.dynamic-island .device {
opacity: 40%;
font-size: 14px;
}
.dynamic-island .icons {
display: flex;
gap: 10px;
transform: rotateY(-90deg);
filter: blur(10px);
transition: all 1000ms cubic-bezier(0.32, 0.7, 0.22, 1.2);
}
.dynamic-island.active .icons {
transform: rotateY(0deg);
filter: blur(0);
}