Programmatic UI Animation (Framer Motion)
Cinematic Principles
- Spring Physics: Use physics-based springs instead of linear generic timings. E.g.,
transition={{ type: "spring", stiffness: 300, damping: 30 }}. - Orchestration: Leverage
staggerChildrenanddelayChildrento create sequential loading reveals across dashboards to simulate high processing power. - Performance: Animate only compositing CSS properties (
transform,opacity). Never animatewidth,height, ormargindirectly unless using Layout Animations (<motion.div layout>).
Agentic Interface Triggers
- Tie visual animations to WebSocket events. If an agent emits a
CRITICALalert, use a<motion.div>overlay with a pulsing redboxShadowto represent the system state changing visually.