diff --git a/src/meshcore_hub/web/templates/base.html b/src/meshcore_hub/web/templates/base.html index 2ee5cb4..2e73302 100644 --- a/src/meshcore_hub/web/templates/base.html +++ b/src/meshcore_hub/web/templates/base.html @@ -124,16 +124,17 @@ to { opacity: 1; transform: translateY(0); } } - /* Card entrance animations */ - .card { + /* Card entrance animations - only for stat cards with .animate-stagger class */ + .animate-stagger > .card, + .animate-stagger > .stat { animation: card-fade-in 300ms ease-out backwards; } - .card:nth-child(1) { animation-delay: 0ms; } - .card:nth-child(2) { animation-delay: 50ms; } - .card:nth-child(3) { animation-delay: 100ms; } - .card:nth-child(4) { animation-delay: 150ms; } - .card:nth-child(5) { animation-delay: 200ms; } - .card:nth-child(6) { animation-delay: 250ms; } + .animate-stagger > :nth-child(1) { animation-delay: 0ms; } + .animate-stagger > :nth-child(2) { animation-delay: 50ms; } + .animate-stagger > :nth-child(3) { animation-delay: 100ms; } + .animate-stagger > :nth-child(4) { animation-delay: 150ms; } + .animate-stagger > :nth-child(5) { animation-delay: 200ms; } + .animate-stagger > :nth-child(6) { animation-delay: 250ms; } @keyframes card-fade-in { from { opacity: 0; transform: translateY(8px); } diff --git a/src/meshcore_hub/web/templates/dashboard.html b/src/meshcore_hub/web/templates/dashboard.html index 65dc7a6..da1ab22 100644 --- a/src/meshcore_hub/web/templates/dashboard.html +++ b/src/meshcore_hub/web/templates/dashboard.html @@ -23,7 +23,7 @@ {% endif %} -