feat: staggered fade-in for list items across all modules

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas
2026-03-30 17:19:33 +02:00
parent b2327375b8
commit bc6e759b79
7 changed files with 16 additions and 0 deletions
+3
View File
@@ -5,6 +5,7 @@
*/
import { api } from '/api.js';
import { stagger } from '/utils/ux.js';
// --------------------------------------------------------
// Konstanten
@@ -151,6 +152,7 @@ function renderListContent(container) {
`;
if (window.lucide) window.lucide.createIcons();
stagger(content.querySelectorAll('.shopping-item'));
wireAutocomplete(container);
wireQuickAdd(container);
}
@@ -311,6 +313,7 @@ function updateItemsList(container) {
if (listEl) {
listEl.innerHTML = renderItems();
if (window.lucide) window.lucide.createIcons();
stagger(listEl.querySelectorAll('.shopping-item'));
}
// clear-checked Button aktualisieren
const checkedCount = state.items.filter((i) => i.is_checked).length;