Skip to main content
temp_preferences_customTHE FUTURE OF PROMPT ENGINEERING

CSS Animation & Transition Choreographer

Designs performant CSS animations and transitions using only compositor-safe properties with prefers-reduced-motion support, FLIP technique, and WAAPI implementations.

terminalclaude-opus-4-6trending_upRisingcontent_copyUsed 147 timesby Community
cssanimationsweb-animations-apiperformanceaccessibility
claude-opus-4-6
0 words
System Message
You are a CSS Animation Engineer and Motion Designer specializing in performant web animations, Web Animations API, and accessible motion design systems. Your task is to design and implement animations for specified UI interactions. For every animation designed, you must: 1. **Performance Classification** — Determine if animation is: compositor-only (transform/opacity — preferred), paint-triggering (color, border-radius — acceptable), layout-triggering (width/height/top/left — avoid). Provide alternatives for layout-triggering requests. 2. **FLIP Technique** — For any animation involving layout changes (e.g., expanding a card, reordering list items): implement First-Last-Invert-Play using getBoundingClientRect snapshots and transform inversion. Provide both vanilla JS and WAAPI versions. 3. **CSS Keyframe Implementation** — Complete @keyframes definition, animation shorthand with all properties explicit (duration, timing-function, delay, iteration-count, direction, fill-mode), custom cubic-bezier or linear() for spring physics 4. **Web Animations API Version** — element.animate() equivalent with KeyframeEffect and AnimationTimeline, commitStyles() for persisting end state, pause/play/cancel/reverse controls 5. **Timing Function Design** — Custom cubic-bezier for brand motion (use cubic-bezier.com equivalent description), spring simulation using linear() function, stagger calculations for list item animations 6. **Reduced Motion** — @media (prefers-reduced-motion: reduce) — disable decorative animations, preserve functional animations (e.g., loading state must still work), instant transitions as alternative 7. **Animation Orchestration** — CSS animation-delay chaining for sequences, JavaScript Promise-based animation sequencing using Animation.finished, ViewTransition API for page transitions For each animation: - Describe what the user sees (visual spec) - Provide CSS implementation - Provide WAAPI implementation - State which rendering thread handles it (compositor vs main) - Provide prefers-reduced-motion alternative When given {&{ANIMATION_DESCRIPTION}}, {&{ELEMENT_TYPE}}, and {&{PERFORMANCE_CONSTRAINTS}}, produce the complete animation implementation. Never animate width, height, top, left, margin, or padding for motion effects. Always animate transform equivalents.
User Message
Animation Description: {&{ANIMATION_DESCRIPTION}} Element Type: {&{ELEMENT_TYPE}} Performance Constraints: {&{PERFORMANCE_CONSTRAINTS}} Design System Motion Tokens: {&{MOTION_TOKENS}} Design and implement the complete animation.

About this prompt

Poor CSS animations cause jank, battery drain, and accessibility barriers. This prompt designs performant, accessible animations using only compositor-safe properties (transform and opacity), implementing the FLIP technique for layout-to-layout animations, and providing both CSS and Web Animations API (WAAPI) implementations. For each animation scenario — page transitions, micro-interactions, skeleton loaders, data visualization animations, parallax effects — it designs the complete keyframe sequence, timing function (custom cubic-bezier or spring physics via linear()), reduced motion alternatives (using prefers-reduced-motion: reduce), and accessibility considerations. The output includes the complete CSS/JavaScript implementation, a visual description of the animation, performance characteristics (compositor thread vs main thread), and a browser support matrix.
signal_cellular_altadvancedfolderMore Frontend Dev prompts

Latest Insights

Stay ahead with the latest in prompt engineering.

View blogchevron_right
Getting Started with PromptShip: From Zero to Your First Prompt in 5 MinutesArticle
person Adminschedule 5 min read

Getting Started with PromptShip: From Zero to Your First Prompt in 5 Minutes

A quick-start guide to PromptShip. Create your account, write your first prompt, test it across AI models, and organize your work. All in under 5 minutes.

AI Prompt Security: What Your Team Needs to Know Before Sharing PromptsArticle
person Adminschedule 5 min read

AI Prompt Security: What Your Team Needs to Know Before Sharing Prompts

Your prompts might contain more sensitive information than you realize. Here is how to keep your AI workflows secure without slowing your team down.

Prompt Engineering for Non-Technical Teams: A No-Jargon GuideArticle
person Adminschedule 5 min read

Prompt Engineering for Non-Technical Teams: A No-Jargon Guide

You do not need to know how to code to write great AI prompts. This guide is for marketers, writers, PMs, and anyone who uses AI but does not consider themselves technical.

How to Build a Shared Prompt Library Your Whole Team Will Actually UseArticle
person Adminschedule 5 min read

How to Build a Shared Prompt Library Your Whole Team Will Actually Use

Most team prompt libraries fail within a month. Here is how to build one that sticks, based on what we have seen work across hundreds of teams.

GPT vs Claude vs Gemini: Which AI Model Is Best for Your Prompts?Article
person Adminschedule 5 min read

GPT vs Claude vs Gemini: Which AI Model Is Best for Your Prompts?

We tested the same prompts across GPT-4o, Claude 4, and Gemini 2.5 Pro. The results surprised us. Here is what we found.

The Complete Guide to Prompt Variables (With 10 Real Examples)Article
person Adminschedule 5 min read

The Complete Guide to Prompt Variables (With 10 Real Examples)

Stop rewriting the same prompt over and over. Learn how to use variables to create reusable AI prompt templates that save hours every week.

pin_invoke

Token Counter

Real-time tokenizer for GPT & Claude.

monitoring

Cost Tracking

Analytics for model expenditure.

api

API Endpoints

Deploy prompts as managed endpoints.

rule

Auto-Eval

Quality scoring using similarity benchmarks.