Skip to content

Commit

Permalink
mudança no botão
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo-medeiros committed Feb 17, 2024
1 parent 0121bad commit bfa93f0
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ body * {
left: 0;
transform: translateY(-50%); /* isso é para alinhar */
top: 50%;
animation: slide-back 0.4s;
}

.light #switch button {
right: 0;
left: initial;
animation: slide-in 0.4s forwards; /*forwards serve para mantar as propriedades do slide-in*/
}

#switch button.houver {
outline: 8px solid var(--highlight-color);
}

#switch span {
Expand Down Expand Up @@ -165,3 +169,21 @@ ul li a:hover {
--bg-url: url(./assets/bg-desktop-light.jpg);
}
}

@keyframes slide-in {
from {
left: 0;
}
to {
left: 50%;
}
}

@keyframes slide-back {
from {
left: 50%;
}
to {
left: 0;
}
}

0 comments on commit bfa93f0

Please sign in to comment.