Commit 8d2128a 1 parent 37289cb commit 8d2128a Copy full SHA for 8d2128a
File tree 2 files changed +21
-13
lines changed
2 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 12
12
13
13
< body >
14
14
< h1 >
15
- < span > YAY</ span >
15
+ < span >
16
+ YAY
17
+ < div class ="stars ">
18
+ < div class ="star text1 "> </ div >
19
+ < div class ="star text2 "> </ div >
20
+ < div class ="star text3 "> </ div >
21
+ </ div >
22
+ </ span >
16
23
< span > YAY</ span >
17
24
< span > YAY</ span >
18
25
< span > YAY</ span >
21
28
< span > YAY</ span >
22
29
< span > YAY</ span >
23
30
</ h1 >
24
- < div class ="star text1 "> </ div >
25
- < div class ="star text2 "> </ div >
26
- < div class ="star text3 "> </ div >
27
31
</ body >
28
32
29
33
</ html >
Original file line number Diff line number Diff line change @@ -102,29 +102,33 @@ h1 span:nth-child(8) {
102
102
left : 47.9% ;
103
103
z-index : 1 ;
104
104
}
105
-
105
+ .stars {
106
+ position : relative;
107
+ width : 100% ;
108
+ z-index : 100 ;
109
+ }
106
110
.star {
107
- position : fixed ;
111
+ position : absolute ;
108
112
width : 5px ;
109
113
height : 5px ;
110
114
border : 1px solid # 000 ;
111
- z-index : 100 ;
112
115
background : # fff ;
113
116
animation : star 2s ease-in-out infinite;
114
117
animation-delay : 1.1s ;
115
118
transform : rotate (0deg ) scale (0 );
119
+ z-index : 100 ;
116
120
}
117
121
.star .text1 {
118
- top : 43.7 % ;
119
- left : 46.6 % ;
122
+ top : -167 px ;
123
+ left : 10 px ;
120
124
}
121
125
.star .text2 {
122
- top : 48 % ;
123
- left : 52.4 % ;
126
+ top : -115 px ;
127
+ left : 92 px ;
124
128
}
125
129
.star .text3 {
126
- top : 53.4 % ;
127
- left : 57.4 % ;
130
+ top : -57 px ;
131
+ left : 164 px ;
128
132
}
129
133
130
134
@keyframes star {
You can’t perform that action at this time.
0 commit comments