Performance: Crossfade for list items
MEDIUM IMPACT
This affects the smoothness of visual transitions and interaction responsiveness when list items change or reorder.
Use Svelte's crossfade function to coordinate animations between old and new list items with shared transitions.Each list item uses separate fade and slide animations triggered on mount and unmount without coordination.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Independent fade/slide per item | Multiple mounts/unmounts | Multiple reflows per item | Multiple paints per item | [X] Bad |
| Svelte crossfade coordinated animation | Minimal DOM changes, reuses elements | Single reflow per animation cycle | Single paint and composite per cycle | [OK] Good |