mikailustuner/omnirule/animations-patterns

Claude Code and agent skill by mikailustuner/omnirule

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Animation decisions, performance, accessibility

Install

npx vskill@latest install mikailustuner/omnirule/animations-patterns

SKILL.md

The same SKILL.md was published earlier as mikailustuner/omnirule/animations-patterns.

Animations Patterns

Focus: Decision framework, performance, accessibility

1. Animation Type Decision Tree

When to use CSS animation:
├── Simple properties → yes
├── Trigger: hover/focus → yes
├── One-time → yes
└── Complex sequencing → JS
When to use JS animation:
├── Dynamic values → yes
├── Physics-based → yes
├── Complex sequencing → yes
└── Interactive → yes
When to use Web Animations API:
├── Framework integration → yes
├── Performance needed → yes
├── Native alternative → yes
└── Library needed → GSAP/framer

2. Property Performance Decision Tree

When to animate transform:
├── Position → yes
├── Scale → yes
├── Rotation → yes
└── Always prefer → yes
When to animate opacity:
├── Fade in/out → yes
├── Visibility changes → yes
└── Use with transform → yes
When to animate other properties:
├── Avoid → layout triggers
├── Colors → acceptable
├── Shadows → expensive
└── Filter → expensive
When to use will-change:
├── Frequent animation → yes
├── Before animation starts → yes
├── After animation ends → remove
└── Default → avoid

3. Accessibility Decision Tree

When to respect reduced motion:
├── User preference → check
├── Essential motion → allow-animations: reduce
├── Eliminated → opacity: 0; visibility: hidden
└── Static alternative → provide
When to auto-play animations:
├── Essential info → avoid
├── Decorative → muted autoplay
├── User can pause → yes
└── No controls → add controls

4. Animation Purpose Decision Tree

When to animate entry:
├── Page load → yes
├── Modal open → yes
├── Accordion expand → yes
└── Single entrance → yes
When to animate state:
├── Hover/focus → microinteraction
├── Loading → skeleton preferred
├── Success/error → feedback
└── Selection → visual feedback
When to animate navigation:
├── Page transition → yes
├── Tab switch → yes
├── Scroll → scroll-behavior
└── Anchor jump → no animation

5. Timing Decision Tree

Duration guidelines:
├── Quick UI → 150-200ms
├── Standard → 200-300ms
├── Emphasis → 300-500ms
└── Page transition → 400-600ms
Easing selection:
├── Linear → rare
├── Ease-out → entry animations
├── Ease-in → exit animations
├── Ease-in-out → complex
└── Custom → cubic-bezier for feel
When to use spring:
├── Natural feel → yes
├── Interactive → yes
├── Bounce needed → yes
└── Simple → easing is fine

When to Use Decision Summary

  1. Prefer transform + opacity — avoid layout trashing
  2. Respect prefers-reduced-motion — check and adapt
  3. Use will-change sparingly — add before, remove after
  4. Timing: fast for UI (200ms), slower for emphasis (400ms)
  5. Spring for interactive, easing for one-way

Anti-Patterns

❌ Animating layout properties (width, height, top, left)
✅ Animate transform and opacity only — GPU-composited
❌ JavaScript setInterval for animations
✅ requestAnimationFrame or CSS transitions
❌ Blocking main thread with heavy JS during animation
✅ Use CSS animations or offload to Web Animations API
❌ Auto-playing motion with no prefers-reduced-motion check
✅ Always wrap motion in @media (prefers-reduced-motion: no-preference)
❌ Animating every interaction (overload)
✅ Reserve animation for meaningful state changes

Quick Reference

ScenarioSolutionPerformance
Simple hoverCSS transitionExcellent
Complex sequenceWeb Animations API / Framer MotionGood
Enter/exitCSS keyframes + class toggleExcellent
Scroll-linkedIntersection ObserverGood
Canvas/gamerequestAnimationFrameExcellent
Reduced motionprefers-reduced-motion media query—

🌍 Universal Language Support

  • Turkish Native: This skill natively supports Turkish. If the user prompt is in Turkish, all analysis, formatting, and output MUST be entirely in Turkish. You do not need explicit "write in Turkish" instructions.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mikailustuner/omnirule/animations-patterns/badge)](https://verified-skill.com/skills/mikailustuner/omnirule/animations-patterns)

Something wrong with this skill or its page? Tell us.