Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rehechas varias mecanicas para facilitar añadir features #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 02-arkanoid-game/ArkanoidBG.webp
Binary file not shown.
Binary file added 02-arkanoid-game/MiduArkanoid.webp
Binary file not shown.
Binary file added 02-arkanoid-game/Sprites.webp
Binary file not shown.
Binary file modified 02-arkanoid-game/bricks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
210 changes: 210 additions & 0 deletions 02-arkanoid-game/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@

:root {
--glow-color: #d94411;
}

*,
*::before,
*::after {
box-sizing: border-box;
}


.glowing-btn {
cursor: pointer;
pointer-events: all;
margin-bottom:4rem;
position: relative;
color: var(--glow-color);
cursor: pointer;
padding: 0.35em 1em;
border: 0.15em solid var(--glow-color);
border-radius: 0.45em;
background: none;
perspective: 2em;
font-family: "Raleway", sans-serif;
font-size: 2em;
font-weight: 900;
letter-spacing: 1em;

-webkit-box-shadow: inset 0px 0px 0.5em 0px var(--glow-color),
0px 0px 0.5em 0px var(--glow-color);
-moz-box-shadow: inset 0px 0px 0.5em 0px var(--glow-color),
0px 0px 0.5em 0px var(--glow-color);
box-shadow: inset 0px 0px 0.5em 0px var(--glow-color),
0px 0px 0.5em 0px var(--glow-color);
animation: border-flicker 2s linear infinite;
}

.glowing-txt {
float: left;
margin-right: -0.8em;
-webkit-text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3),
0 0 0.45em var(--glow-color);
-moz-text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3),
0 0 0.45em var(--glow-color);
text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em var(--glow-color);
animation: text-flicker 3s linear infinite;
}

.faulty-letter {
opacity: 0.5;
animation: faulty-flicker 2s linear infinite;
}

.glowing-btn::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
opacity: 0.7;
filter: blur(1em);
transform: translateY(120%) rotateX(95deg) scale(1, 0.35);
background: var(--glow-color);
pointer-events: none;
}

.glowing-btn::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
z-index: -1;
background-color: var(--glow-color);
box-shadow: 0 0 2em 0.2em var(--glow-color);
transition: opacity 100ms linear;
}

.glowing-btn:hover {
color: rgba(0, 0, 0, 0.8);
text-shadow: none;
animation: none;
}

.glowing-btn:hover .glowing-txt {
animation: none;
}

.glowing-btn:hover .faulty-letter {
animation: none;
text-shadow: none;
opacity: 1;
}

.glowing-btn:hover:before {
filter: blur(1.5em);
opacity: 1;
}

.glowing-btn:hover:after {
opacity: 1;
}

@keyframes faulty-flicker {
0% {
opacity: 0.1;
}
2% {
opacity: 0.1;
}
4% {
opacity: 0.5;
}
19% {
opacity: 0.5;
}
21% {
opacity: 0.1;
}
23% {
opacity: 1;
}
80% {
opacity: 0.5;
}
83% {
opacity: 0.4;
}

87% {
opacity: 1;
}
}

@keyframes text-flicker {
0% {
opacity: 0.1;
}

2% {
opacity: 1;
}

8% {
opacity: 0.1;
}

9% {
opacity: 1;
}

12% {
opacity: 0.1;
}
20% {
opacity: 1;
}
25% {
opacity: 0.3;
}
30% {
opacity: 1;
}

70% {
opacity: 0.7;
}
72% {
opacity: 0.2;
}

77% {
opacity: 0.9;
}
100% {
opacity: 0.9;
}
}

@keyframes border-flicker {
0% {
opacity: 0.1;
}
2% {
opacity: 1;
}
4% {
opacity: 0.1;
}

8% {
opacity: 1;
}
70% {
opacity: 0.7;
}
100% {
opacity: 1;
}
}

@media only screen and (max-width: 600px) {
.glowing-btn{
font-size: 1em;
}
}
Loading