---
name: premium-ui-refinement
description: Apply premium animation and UI refinement patterns to create polished, refined user experiences. Use when working on animations, transitions, UI polish, or when the user asks about making elements feel more premium or refined.
---
# Premium UI Refinement
Apply proven animation and visual design patterns to create a premium, refined user experience throughout DesQTA.
## Core Principles
### 1. Easing Functions
**Never use linear easing.** Always use:
- `cubic-bezier(0.4, 0, 0.2, 1)` (Material Design standard)
- `cubicInOut` from `svelte/easing` for Svelte transitions
### 2. Duration Hierarchy
Match duration to element complexity:
- **150-200ms**: Simple UI (buttons, dropdowns, tooltips)
- **300ms**: Moderate changes (sidebars, modals, panels)
- **400-500ms**: Complex content (page sections, data tables)
- **500-1000ms**: Data visualizations (charts, graphs)
### 3. Multi-Property Animations
Combine multiple properties for richer feel:
- Opacity + transform (scale/translate)
- Width + opacity
- Position + scale
- Never animate just one property
### 4. Transform Origin
Set `transform-origin` to logical anchor points:
- Text elements: `left center` (matches reading flow)
- Buttons: `center center` (default)
- Dropdowns: anchor to trigger element
### 5. Stagger Sequential Elements
Use delays for related elements:
- First element: 0ms
- Second: 100ms delay
- Third: 200ms delay
- Creates visual hierarchy
### 6. Visual Effects Layering
Combine effects for depth:
- `backdrop-blur-md` for glassmorphism
- `shadow-2xl` for elevation
- Semi-transparent backgrounds (`bg-white/95`)
- Multiple effects work together
## Common Patterns
### Premium Fade-In
```svelte