Skip to content

Commit

Permalink
Slow down ping animation for muted icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Dec 10, 2023
1 parent 0465278 commit 44092b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/asteroids-website/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
{#if muted}
<div
in:fly
class="absolute select-none animate-ping mt-2 opacity-80 mh-auto text-center right-0 left-0 text-2xl lg:text-5xl lg:m-5"
class="absolute opacity-75 select-none animate-pingSlow mt-2 opacity-80 mh-auto text-center right-0 left-0 text-2xl lg:text-5xl lg:m-5"
>
🔇
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/asteroids-website/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export default {
'red-mid': '#c24b6e',
'red-dark': '#a73169',
},
extend: {},
extend: {
animation: {
'pingSlow': 'ping 1.5s ease-in-out infinite',
}
},
},
plugins: [],
}
Expand Down

0 comments on commit 44092b8

Please sign in to comment.