File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 7
7
< link rel ="stylesheet " type ="text/css " href ="main.css ">
8
8
</ head >
9
9
< body >
10
+ < img src ="crit.webp " id ="critImg ">
10
11
< div id ="popup ">
11
12
< div id ="popupText ">
12
13
0
Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ const eventsTable = [
52
52
action : ( ) => {
53
53
clickMeText . innerText = `You broke it` ;
54
54
playFart ( critFart ) ;
55
+ critImg . animate ( [
56
+ { opacity : 0 } ,
57
+ { opacity : 1 } ,
58
+ { opacity : 0 }
59
+ ] , {
60
+ duration : 1000 ,
61
+ fill : "forwards"
62
+ } ) ;
55
63
} ,
56
64
} ,
57
65
{
Original file line number Diff line number Diff line change
1
+ body {
2
+ margin : 0 ;
3
+ }
1
4
.center {
2
5
position : absolute;
3
6
left : 50% ;
16
19
user-select : none;
17
20
-webkit-user-select : none;
18
21
}
22
+ # critImg {
23
+ opacity : 0 ;
24
+ position : absolute;
25
+ height : 100% ;
26
+ width : 100% ;
27
+ object-fit : cover;
28
+ }
19
29
# popup {
20
30
visibility : hidden;
21
31
position : absolute;
35
45
}
36
46
.customCursor {
37
47
cursor : url ("peach-emoji.png" ), auto;
38
- }
48
+ }
You can’t perform that action at this time.
0 commit comments