File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 21
21
< img id ="profilePicture " src ="https://avatars0.githubusercontent.com/u/43749971 " alt ="Profile Picture ">
22
22
</ a >
23
23
24
- < div class ="popup " id ="popup ">
25
- < div class ="popup-inner ">
24
+ < div class ="overlay " id ="popup ">
25
+ < div class ="popup ">
26
26
< div class ="popup-photo ">
27
27
< img src ="https://avatars0.githubusercontent.com/u/43749971 " alt ="Profile Picture ">
28
28
</ div >
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ body {
130
130
131
131
/*-------------------------popup------------------------*/
132
132
/* credits: https://www.youtube.com/watch?v=lAS2glU0xlc */
133
- .popup {
133
+ .overlay {
134
134
display : flex;
135
135
align-items : center;
136
136
justify-content : center;
@@ -147,9 +147,9 @@ body {
147
147
transition : .5s ease-in-out;
148
148
}
149
149
150
- .popup-inner {
150
+ .popup {
151
151
position : relative;
152
- bottom : -100vw ;
152
+ /* top : -100vw; */
153
153
/* right: -100vh; */
154
154
display : flex;
155
155
align-items : center;
@@ -159,6 +159,7 @@ body {
159
159
height : 80% ;
160
160
background-color : var (--accentColor );
161
161
/* transform: rotate(32deg); */
162
+ transform : scale (0 );
162
163
transition : .5s ease-in-out;
163
164
}
164
165
@@ -199,13 +200,14 @@ body {
199
200
line-height : 1.5 ;
200
201
}
201
202
202
- .popup : target {
203
+ .overlay : target {
203
204
visibility : visible;
204
205
opacity : 1 ;
205
206
}
206
207
207
- .popup : target .popup-inner {
208
- bottom : 0 ;
208
+ .overlay : target .popup {
209
+ transform : scale (1 );
210
+ /* top: 0; */
209
211
/* right: 0; */
210
212
/* transform: rotate(0); */
211
213
}
You can’t perform that action at this time.
0 commit comments