Foundation
Stable

Motion

Motion in Syhrezz is subtle and purposeful. Every transition serves a function — communicating state change, providing feedback, or guiding attention. Never add animation purely for decoration.

Transition Tokens

TokenValueUsage
--transition-fastall 0.15s easeRow hover backgrounds, feed items, tooltip appearance
--transition-baseall 0.2s easeButtons, badges, nav items (Dark), inputs border/shadow
--transition-smoothall 0.2s cubic-bezier(0.4,0,0.2,1)Nav items (Accent), card hover, button hover lift, dropdown
--transition-sidebarall 0.35s cubic-bezier(0.4,0,0.2,1)Sidebar collapse/expand width change

Hover Behaviors

Card hover (translateY -3px)
Hover me
Button hover (translateY -2px)
Nav item (translateX 4px)
Dashboard

Keyframe Animations

NameKeyframeDurationUsage
fadeInopacity:0 + translateY(10px) → full0.4s easeGeneral content reveal on page load — .fade-in
fadeUpopacity:0 + translateY(18px) → full0.4s easeDashboard KPI cards staggered entrance — .fade-up
modalInscale(0.95)+opacity:0 → scale(1)+opacity:10.3s easeModal dialog open animation
shimmerbg-position sweep left→right1.5s infiniteSkeleton loading state
pulseDotopacity + scale oscillate2s ease infiniteLive Location indicator, real-time data dot
spinrotate 0→360deg0.7s linear infiniteButton loading spinner
toastInopacity:0 + translateY(10px) → full0.3s easeToast notification entrance

Live Examples

Fade Up (.fade-up)
Animated in
Skeleton shimmer
Pulse dot (live)
Live tracking
Spinner (loading)

Stagger Pattern

Dashboard KPI cards animate in with staggered delays. Add .fade-up to each card, then .fu-1 through .fu-4 for the delay offsets.

/* CSS */
.fade-up  { animation: fadeUp .4s ease forwards; opacity: 0; }
.fu-1     { animation-delay: .05s; }
.fu-2     { animation-delay: .10s; }
.fu-3     { animation-delay: .15s; }
.fu-4     { animation-delay: .20s; }

<!-- HTML -->
<div class="kpi-card kpi-blue fade-up fu-1">...</div>
<div class="kpi-card kpi-green fade-up fu-2">...</div>
<div class="kpi-card kpi-amber fade-up fu-3">...</div>
<div class="kpi-card kpi-red fade-up fu-4">...</div>

AI Implementation Notes

For AI coding assistants: Every interactive element must have a transition. Use var(--transition-smooth) for most UI elements. Use var(--transition-fast) for hover backgrounds only. Never use transitions longer than 0.35s — that is reserved for sidebar collapse only. Button hover always uses transform:translateY(-2px). Card hover always uses transform:translateY(-3px). KPI card hover always uses transform:translateY(-4px). Ghost buttons do NOT lift on hover.