This is a reference guide for implementing Disney's 12 principles of animation using pure CSS. You get code snippets for squash and stretch, anticipation, follow-through, arcs using offset-path, and the rest of the classic animation fundamentals. It includes timing recommendations (micro-interactions at 100-200ms, page transitions at 300-500ms) and covers the essential properties like keyframes, transforms, and cubic-bezier easing functions. Honestly, it's more of a quick lookup than a deep dive, but having all twelve principles with working CSS examples in one place beats hunting through MDN when you're trying to make a button feel less robotic or add some life to a page transition.

skills.sh installs
760
GitHub stars
146
last updated
Aug 21, 2026

Install

$ npx -y skills add dylantarre/animation-principles --skill css-native --agent claude-code

Installs into .claude/skills of the current project.

Files

CSS Native Animation Principles

Implement all 12 Disney animation principles using CSS animations, transitions, and transforms.

1. Squash and Stretch

@keyframes squash-stretch {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(1.2) scaleY(0.8); }
}
.ball { animation: squash-stretch 0.3s ease-in-out; }

2. Anticipation

@keyframes anticipate-jump {
  0% { transform: translateY(0); }
  20% { transform: translateY(10px) scaleY(0.9); } /* wind up */
  100% { transform: translateY(-100px); }
}

3. Staging

.hero { z-index: 10; filter: none; }
.background { z-index: 1; filter: blur(2px); opacity: 0.7; }

4. Straight Ahead / Pose to Pose

/* Pose to pose - define keyframes explicitly */
@keyframes walk-cycle {
  0% { background-position: 0 0; }
  25% { background-position: -100px 0; }
  50% { background-position: -200px 0; }
  75% { background-position: -300px 0; }
  100% { background-position: -400px 0; }
}

5. Follow Through and Overlapping Action

Sponsors

Details

Repository
github.com/dylantarre/animation-principles
Categories
Frontend Development, Design & UI/UX
First seen
Jun 3, 2026

More from dylantarre/animation-principles

All 144
1jezweb avatarreact-native-expojezweb/claude-skillsBuild React Native 0.76+ apps with Expo SDK 52-54. Covers mandatory New Architecture (0.82+/SDK 55+), React 19 changes, SDK 54 breaking changes (expo-av, expo-f738skills.sh installs
2mindrally avatarremixmindrally/skillsExpert guidance for Remix development with TypeScript, loaders/actions, nested routes, and full-stack web application best practices711skills.sh installs
3mindrally avatarreact-native-cursor-rulesmindrally/skillsReact Native development best practices for TypeScript, functional components, performance optimization, and styling guidelines.696skills.sh installs
4astronomer avatartroubleshooting-astro-deploymentsastronomer/agentsTroubleshoot Astronomer production deployments with Astro CLI. Use when investigating deployment issues, viewing production logs, analyzing failures, or managin655skills.sh installs
5existential-birds avatarreact-flow-advancedexistential-birds/beagleAdvanced React Flow patterns for complex use cases. Use when implementing sub-flows, custom connection lines, programmatic layouts, drag-and-drop, undo/redo, or643skills.sh installs
6withastro avatarastro-developerwithastro/astroComprehensive guide for developing in the Astro monorepo. Covers architecture, debugging, testing, and critical constraints. Use when working on features, fixes596skills.sh installs