mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-01 11:57:24 +02:00
feat(settings): badge pulse animation with settings toggle (#676)
* feat: animate panel count badge on new data arrival * feat(settings): gate badge pulse animation behind toggle (off by default) PR #671 adds CSS pulse on panel count badges. This commit gates it behind a new `badgeAnimation` setting in UnifiedSettings so users opt-in. Adds i18n keys for all 18 locales. --------- Co-authored-by: jeronlxj <jeronliaw@u.nus.edu>
This commit is contained in:
@@ -1061,6 +1061,17 @@ body.panel-resize-active iframe {
|
||||
background: var(--border);
|
||||
padding: 2px 6px;
|
||||
border-radius: 2px;
|
||||
transition: color 0.3s ease, background 0.3s ease;
|
||||
}
|
||||
|
||||
.panel-count.bump {
|
||||
animation: count-bump 0.5s ease-out;
|
||||
}
|
||||
|
||||
@keyframes count-bump {
|
||||
0% { transform: scale(1); background: var(--border); color: var(--text-dim); }
|
||||
40% { transform: scale(1.3); background: var(--accent); color: var(--bg); }
|
||||
100% { transform: scale(1); background: var(--border); color: var(--text-dim); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user