feat: buzz out animation

This commit is contained in:
DIYgod
2023-02-03 11:00:50 +00:00
parent 3945cb950b
commit 3095e527a7
2 changed files with 39 additions and 2 deletions
+2 -2
View File
@@ -129,12 +129,12 @@ export const ConnectButton: React.FC<{
<>
{isAllRead ? (
<BellIcon
className="w-5 h-5 text-zinc-500 cursor-pointer"
className="w-5 h-5 text-zinc-500 cursor-pointer hover:animate-buzz-out"
onClick={showNotificationModal}
/>
) : (
<BellAlertIcon
className="w-5 h-5 text-accent cursor-pointer"
className="w-5 h-5 text-accent cursor-pointer hover:animate-buzz-out"
onClick={showNotificationModal}
/>
)}
+37
View File
@@ -19,6 +19,43 @@ module.exports = {
fontFamily: {
mono: `Roboto Mono,Monaco,monospace`,
},
keyframes: {
"buzz-out": {
"10%": {
transform: "translateX(3px) rotate(2deg)",
},
"20%": {
transform: "translateX(-3px) rotate(-2deg)",
},
"30%": {
transform: "translateX(3px) rotate(2deg)",
},
"40%": {
transform: "translateX(-3px) rotate(-2deg)",
},
"50%": {
transform: "translateX(2px) rotate(1deg)",
},
"60%": {
transform: "translateX(-2px) rotate(-1deg)",
},
"70%": {
transform: "translateX(2px) rotate(1deg)",
},
"80%": {
transform: "translateX(-2px) rotate(-1deg)",
},
"90%": {
transform: "translateX(1px) rotate(0)",
},
"100%": {
transform: "translateX(-1px) rotate(0)",
},
},
},
animation: {
"buzz-out": "buzz-out .75s linear 1",
},
},
},
variants: {},