Interaction Design Skill

SkillMedia

Design and implement purposeful UI motion, microinteractions, and feedback patterns to enhance usability and user delight, hover effects, transitions, loading states, and gesture responses.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Interaction Design Skill skill

What this skill tells your AI

The instructions your AI receives, as published by bidewio/better-openclaw in skills/interaction-design/SKILL.md and read by ahel’s review.

When to use

  • Adding microinteractions to UI components
  • Designing hover, focus, and active states
  • Implementing feedback patterns (loading, success, error)
  • Creating purposeful motion that enhances usability

Core principles

  1. Purpose: Every animation should serve a function (guide attention, provide feedback, indicate state)
  2. Performance: Use transform and opacity only (GPU-accelerated)
  3. Duration: 150-300ms for micro, 300-500ms for transitions, never > 1s
  4. Easing: ease-out for entrances, ease-in for exits, ease-in-out for state changes
  5. Accessibility: Respect prefers-reduced-motion

Common patterns

Button feedback

.btn {
  transition: all 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

Loading skeleton

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

Toast notification entrance

.toast { animation: slideIn 300ms ease-out; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

Reduced motion

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

Tips for AI Agents

  • Always include prefers-reduced-motion handling.
  • Keep animations under 300ms for micro-interactions.
  • Use CSS transitions for simple state changes, JS animations for complex sequences.

Signals

GitHub stars
58
Forks
6
Last commit
Aug 2026
Advanced
Item type
skill
Key
interaction-design-bidewio
Source
github.com/bidewio/better-openclaw