Skip to content

Commit

Permalink
Issue-99: Refactor keyframes to be a transition
Browse files Browse the repository at this point in the history
  • Loading branch information
DevLab2425 committed Oct 13, 2024
1 parent 2f38f36 commit d682779
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/components/side-nav/side-nav.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,15 @@

& #indicator {
display: inline-block;
transition: transform 1s ease;
}
}

.compactMenu:has(#compact-menu:popover-open) {
& #indicator {
animation: rotateindicatoropen 1s ease;
animation-fill-mode: forwards;
}
.compactMenu:not(:has(#compact-menu:popover-open)) #indicator {
transform: rotate(0deg);
}

@keyframes rotateindicatoropen {
from {
transform: rotate(0deg);
}

to {
transform: rotate(180deg);
}
.compactMenu:has(#compact-menu:popover-open) #indicator {
transform: rotate(180deg);
}

.compactMenuPopover {
Expand Down

0 comments on commit d682779

Please sign in to comment.