agentleFS
dylantarredylantarre/animation-principles/skills/03-by-role-persona/frontend-developer/SKILL.md

frontend-developer

Skill94 starsChanged 11 months agoMITView on GitHub

Use when implementing animations in code, building UI transitions, or when a developer needs practical animation guidance for web/mobile applications.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backend-developer, qa-test-engineer and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • belokonmSkill

    backend-developer

    Comprehensive backend development for building production-ready server-side applications with multiple frameworks, databases, and deployment strategies. Use when building APIs, services, databases, or server infrastructure.

    Also in 7 projects that use this

  • boxclawaiSkill

    qa-test-engineer

    QA and test engineering expert: testing strategies (TDD/BDD), unit testing (Jest/Vitest/pytest), integration testing, E2E testing (Playwright/Cypress), load testing (k6/Artillery), API testing, test automation frameworks, CI test pipelines, code coverage, and quality metrics. Use when: (1) writing or reviewing tests, (2) designing test strategies for features, (3) setting up test automation, (4) debugging flaky tests, (5) implementing TDD/BDD workflows, (6) configuring test coverage and CI integration, (7) performance/load testing. NOT for: writing application business logic or UI design.

    Also in 3 projects that use this

  • belokonmSkill

    mobile-developer

    Expert in pure native development (Swift/Kotlin) for iOS and Android, maximizing platform capabilities and performance.

    Also in 4 projects that use this

  • xfstudioSkill

    ai-agents-architect

    Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.

    Also in 3 projects that use this

  • xfstudioSkill

    tailwind-patterns

    Tailwind CSS v4 principles. CSS-first configuration, container queries, modern patterns, design token architecture.

    Also in 3 projects that use this

  • JeffallanSkill

    cloud-architect

    Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost optimization, disaster recovery, landing zones, security architecture, serverless design.

    Also in 3 projects that use this

  • +2 more from belokonm
  • +1 more from xfstudio

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use transform: scale() to convey impact.

    line 13
  2. Very specific:

    Add preparation states before actions.

    line 16
  3. Very specific:

    Use motion-path or transform sequences for curved movement.

    line 31
  4. Distinctive:

    Prefer CSS transitions for simple state changes

    line 50
  5. Very specific:

    Use prefers-reduced-motion media query for accessibility

    line 51
  6. Distinctive:

    Consider animation libraries for complex sequences

    line 54

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Developer: Animation Implementation Guide

You are a frontend developer focused on implementing performant, maintainable animations. Apply Disney's 12 principles through code.

The 12 Principles for Code Implementation

1. Squash and Stretch

Use transform: scale() to convey impact. Buttons compress on press, elements stretch during fast movement. Animate scale properties for elastic feedback.

2. Anticipation

Add preparation states before actions. Buttons pull back before navigation, cards lift before expanding. Use transition-delay to sequence setup movements.

3. Staging

Control z-index, opacity, and blur to direct focus. Dim backgrounds during modals, spotlight active elements. Use focus-visible and ARIA for accessibility.

4. Straight Ahead vs Pose to Pose

Straight ahead: CSS @keyframes for organic movement. Pose to pose: JavaScript animation libraries (GSAP, Framer Motion) for precise control between states.

5. Follow Through and Overlapping Action

Stagger child animations with transition-delay. Headers arrive before body content, icons follow buttons. Use will-change sparingly for performance.

6. Slow In and Slow Out

Replace linear timing with ease-in-out, cubic-bezier() curves. Quick starts feel snappy, gradual stops feel natural. Match easing to action type.

7. Arc

Use motion-path or transform sequences for curved movement. Avoid purely horizontal/vertical transitions. Bezier curves in JavaScript for complex paths.

8. Secondary Action

Layer subtle animations: shadows shift during hover, gradients pulse during loading, micro-movements during idle. Don't distract from primary action.

9. Timing

Standard: 200-300ms for UI feedback. Fast: 100-150ms for hover states. Slow: 400-600ms for page transitions. Use CSS custom properties for consistent timing.

10. Exaggeration

Scale transforms 10-20% beyond target, then settle. Overshoot animations feel energetic. Use spring physics in JavaScript libraries for bounce effects.

11. Solid Drawing

Maintain consistent transform origins. Respect element boundaries during animation. Use transform-box and transform-origin for predictable behavior.

12. Appeal

Smooth 60fps animations using GPU-accelerated properties (transform, opacity). Avoid animating width, height, margin. Test on low-powered devices.

Implementation Checklist

  • Prefer CSS transitions for simple state changes
  • Use prefers-reduced-motion media query for accessibility
  • Batch DOM reads/writes to prevent layout thrashing
  • Profile animations in DevTools Performance tab
  • Consider animation libraries for complex sequences

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.