You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<articleclass="chrome" style="background-image:url(https://css-games.com/super-css-mario-2/mario.png)"><ahref="https://css-games.com/super-css-mario-2/">Super CSS Mario II</a></article>
Created by <ahref="https://twitter.com/ChallengesCss" target="_blank">Temani Afif</a> | <ahref="https://support.temani-afif.com/" target="_blank">Support this project</a>
animation: f 0.1s linear forwards paused, s1 60s linear forwards paused;
74
+
}
75
+
@container style(--x: 9) and style(--y: 4) {
76
+
b:after {
77
+
animation-play-state: running, paused !important;
78
+
--_c:"\a Congratulations!\a \aYou did it in "counter(s1,decimal-leading-zero) "s";
79
+
}
80
+
}
81
+
@container (style(--x:0) and (style(--y:1) or style(--y: 2) or style(--y: 3) or style(--y: 4)))
82
+
or (style(--x:1) and (style(--y:4)))
83
+
or (style(--x:2) and (style(--y:0) or style(--y: 1) or style(--y: 2) or style(--y: 4)))
84
+
or (style(--x:3) and (style(--y:0) or style(--y: 1) or style(--y: 4)))
85
+
or (style(--x:4) and (style(--y:0) or style(--y: 1) or style(--y: 3) or style(--y: 4)))
86
+
or (style(--x:5) and (style(--y:0)))
87
+
or (style(--x:6) and (style(--y:0) or style(--y: 2) or style(--y: 3)))
88
+
or (style(--x:8) and (style(--y:1) or style(--y: 2) or style(--y: 4))) {
89
+
b:after {
90
+
animation-play-state: running, paused !important;
91
+
}
92
+
}
93
+
94
+
@keyframes f {
95
+
1%,to {
96
+
content:var(--_c,"\aGame Over\a\aRefresh the page\a and try again ");
97
+
font-size:50px;
98
+
background:var(--b);
99
+
inset:00-60px;
100
+
}
101
+
}
102
+
@keyframes s1 {
103
+
to {
104
+
--s1:60;
105
+
}
106
+
}
107
+
g {
108
+
display: block;
109
+
width:960px;
110
+
height:520px;
111
+
}
112
+
113
+
body {
114
+
position: relative;
115
+
margin: auto auto 70px;
116
+
overflow: auto;
117
+
scrollbar-width: none;
118
+
width:600px;
119
+
height:360px;
120
+
border:5px solid var(--c1);
121
+
background:var(--c1);
122
+
cursor: pointer;
123
+
}
124
+
125
+
b:before {
126
+
content:"Grab the dino without\atouching the wall\a\aUse your keyboard to move\a\a\a🖱️Click to start";
127
+
font-size:30px;
128
+
white-space: pre;
129
+
text-align: center;
130
+
position: absolute;
131
+
inset:00-60px;
132
+
padding-top:20px;
133
+
pointer-events: none;
134
+
z-index:5896;
135
+
color:#fefeff;
136
+
background:url(https://assets.codepen.io/1480814/ad.png) bottom/90px auto no-repeat,url(https://assets.codepen.io/1480814/k.png) 50%55%/90px auto no-repeat var(--b);
0 commit comments