Improve shine effect

This commit is contained in:
Claudio Ortolina
2025-09-24 21:10:02 +03:00
parent 52c7503189
commit 6a5fc53492
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -52,7 +52,7 @@
@keyframes shine { @keyframes shine {
0%, 0%,
100% { 100% {
background-size: 200% 200%; background-size: 100% 100%;
background-position: left center; background-position: left center;
} }
50% { 50% {
@@ -229,9 +229,9 @@ defmodule MusicLibraryWeb.StatsComponents do
"text-xs leading-5", "text-xs leading-5",
normal_year?(@years) && "text-zinc-500 dark:text-zinc-400", normal_year?(@years) && "text-zinc-500 dark:text-zinc-400",
gold_year?(@years) && gold_year?(@years) &&
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-yellow-200 via-yellow-500 to-yellow-700 animate-shine", "font-semibold bg-gradient-to-r bg-clip-text text-transparent from-yellow-500 via-yellow-200 to-yellow-700 animate-shine",
silver_year?(@years) && silver_year?(@years) &&
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-gray-200 via-gray-500 to-gray-700 animate-shine" "font-semibold bg-gradient-to-r bg-clip-text text-transparent from-gray-500 via-gray-200 to-gray-700 animate-shine"
]}> ]}>
{ngettext( {ngettext(
"1 year ago", "1 year ago",