Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/floating buttons: update the highlight animation

Adorian Doran592a7fe77143
diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css
index 57b5456221..fe85afdc52 100644
--- a/src/public/stylesheets/theme-next/shell.css
+++ b/src/public/stylesheets/theme-next/shell.css
@@ -1464,14 +1464,17 @@ div.floating-buttons-children .close-floating-buttons:has(.close-floating-button
@keyframes floating-button-highlight {
from {
- opacity: .25;
+ background: var(--floating-button-background);
+ color: var(--floating-button-color);
} to {
- opacity: 1;
+ background: var(--floating-button-hover-background);
+ color: var(--floating-button-hover-color);
}
}
.floating-buttons .bx-tada {
- animation: floating-button-highlight 300ms linear alternate-reverse infinite;
+ /* The class is applied for 1700ms */
+ animation: floating-button-highlight 425ms ease-in-out alternate infinite;
}
.floating-buttons .bx-tada::before {