feat: Improve live folder enter animation, b=no-bug, c=folders

This commit is contained in:
mr. m
2026-02-24 10:54:13 +01:00
parent e5622d2237
commit c772f6d795
2 changed files with 3 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ zen-folder {
}
&[live-folder-animation] {
background: linear-gradient(90deg, color-mix(in srgb, var(--sidebar-text-color) 50%, transparent), var(--sidebar-text-color));
background: linear-gradient(270deg, var(--sidebar-text-color), color-mix(in srgb, var(--sidebar-text-color) 25%, transparent));
background-size: 400%;
background-clip: text;
-webkit-text-fill-color: transparent;

View File

@@ -232,10 +232,10 @@ class nsZenLiveFoldersManager {
.animate(
labelElement,
{
backgroundPositionX: ["0%", "-100%"],
backgroundPositionX: ["0%", "-50%"],
},
{
duration: 2,
duration: 1.5,
}
)
.then(() => {