CSS Battle #124 – Space Invaders #1377
Narigo
started this conversation in
CSS Battles
Replies: 1 comment
-
|
My diff doesn't look good, but it got to 100% somehow... 😅 Code Source – 600.03 {998}<div class="grid">
<div class="ship"></div>
<div class="ship"></div>
<div class="ship"></div>
<div class="ship"></div>
<div class="ship y"></div>
<div class=""></div>
<div class="ship y"></div>
<div class="ship y"></div>
</div>
<style>
body {
background:
conic-gradient(#2CE1EA) 50% 210px / 10px 10px no-repeat,
conic-gradient(#2CE1EA) 50% 240px / 10px 10px no-repeat,
conic-gradient(#2CE1EA) 50% 270px / 10px 15px no-repeat,
conic-gradient(#0000 135deg,#2CE1EA 0 225deg, #0000 0) 169.5px 249px / 60px 60px no-repeat,
#071945;
}
.ship {
width: 70px;
height: 20px;
background: #dd6b4d;
}
.grid {
display: grid;
grid-template-columns: repeat(4, 70px);
gap: 30px 20px;
position: absolute;
top: 40;
left: 30;
}
.ship {
--c: #B069F7;
background: conic-gradient(var(--c) 90deg,transparent 0 180deg,var(--c) 0 270deg,transparent 0) -40px 50% / 100px 100%;
}
.y {
--c: #F8DA37;
}
</style> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Link to battle:
Let's battle! ⚔️
Copy the code block below to format your comment on the discussion thread:
What others will see:
This will result in a nice hidden bit like so:
Code Source – score {characters}
Beta Was this translation helpful? Give feedback.
All reactions