Skip to content

Commit

Permalink
fix: fix waving animation
Browse files Browse the repository at this point in the history
  • Loading branch information
S-N-O-R-L-A-X committed Oct 19, 2024
1 parent f033c51 commit 63d96e3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/GithubCorner/Octocat.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
animation: octocat-nod .56s ease-in-out;
}

.github-corner:hover .wave .octo-arm {
animation: octocat-wave .56s ease-in-out;
}

@media screen and (max-width: 768px) {
.github-corner:hover .octo-arm {
animation: none;
Expand All @@ -19,7 +23,6 @@
}

@keyframes octocat-nod {

0%,
to {
transform: rotate(10deg);
Expand All @@ -36,6 +39,25 @@
}
}


@keyframes octocat-wave {
0%,
to {
transform: rotate(20deg);
}

20%,
60% {
transform: rotate(20deg);
}

40%,
80% {
transform: rotate(20deg);
}
}


.github-corner svg {
color: #fff;
fill: black;
Expand Down

0 comments on commit 63d96e3

Please sign in to comment.