Skip to content

Commit

Permalink
feat: flip for power claim toast
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 6, 2024
1 parent f56201c commit 7469ed2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/queries/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const useClaimWalletDailyRewardMutation = () => {
className="flex items-center gap-1 text-lg"
onClick={() => settingModalPresent("wallet")}
>
<i className="i-mgc-power" />
<i className="i-mgc-power animate-flip" />
</div>,
{
unstyled: true,
Expand Down
15 changes: 15 additions & 0 deletions src/renderer/src/styles/tailwind-extend.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,18 @@
--spring-duration: 1.157s;
}
}

@layer utilities {
.animate-flip {
animation: flip 0.5s ease-in-out infinite;
}

@keyframes flip {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(180deg);
}
}
}

0 comments on commit 7469ed2

Please sign in to comment.