- Home
- Skills
- Frontend & Web Apps
- Motion & Micro-interactions — Springs, View Transitions
Works with the AI Agents you already use
Motion & Micro-interactions — Springs, View Transitions
Add high-performance UI transitions and micro-interactions with correct timing, springs, and accessibility support.
Free
Motion & Micro-interactions — Springs, View Transitions
Example session with this skill installed
Add a spring-based enter/exit animation to this React list and make sure it handles reduced motion correctly.
- Read your context and instructions
- Compiled the motion & micro-interactions
I have implemented the spring-based list animations using Framer Motion. The configuration uses a stiffness of 380 and damping of 32 for a responsive feel, with an accelerated exit duration of 120ms. I also included a useReducedMotion check to ensure the UI remains accessible.
React Motion List Implementation
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
export const AnimatedList = ({ items }) => {
const shouldReduceMotion = useReducedMotion();
// For reduced motion, we swap movement for a simple cross-fade
const initial = shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 8 };
const animate = { opacity: 1, y: 0 };
const exit = shouldReduceMotion
? { opacity: 0 }
: { opacity: 0, scale: 0.98, transition: { duration: 0.12 } };
return (
<ul className="list-none p-0">
<AnimatePresence initial={false}>
{items.map((item) => (
<motion.li
key={item.id}
layout
initial={initial}
animate={animate}
exit={exit}
transition={{
type: "spring",
stiffness: 380,
damping: 32,
mass: 1
}}
className="p-4 mb-2 bg-white rounded-lg shadow-sm border border-slate-200"
>
{item.content}
</motion.li>
))}
</AnimatePresence>
</ul>
);
};
Next steps
- Verify the
layoutprop behavior if items change size dynamically. - Test the interaction on a device with "Reduce Motion" enabled in system settings.
- Adjust the
stiffnessto 300 if the bounce feels too aggressive for your brand style.
Connects securely to your tools. The creator never sees your data.
About this skill
Interfaces often feel static or jarring when state changes lack visual continuity. This skill adds purposeful motion and micro-interactions to web and app UIs to explain change, provide feedback, and maintain orientation.
What it does
- Interaction feedback implementing scale and color shifts for button presses and toggles.
- Orientation transitions for drawers and navigation menus using origin-based slides.
- Shared-element continuity for card-to-detail views using View Transitions or FLIP.
- Status indicators including morphing success states and skeleton screens with flicker prevention.
- Reduced motion support ensuring accessibility via CSS media queries and JS hooks.
How it works
- Identify purpose by categorizing the interaction as feedback, orientation, continuity, or status.
- Apply timing using specific ranges such as 100-150ms for hovers or 250-400ms for page panels.
- Configure easing using defined cubic-bezier curves or spring physics constants.
- Implement recipes across CSS, React (Motion), Vue, or the native View Transitions API.
Frameworks & tools
Works with CSS, Framer Motion (Motion for React), GSAP, Vue Transition components, and the native browser View Transitions API.
Why this beats prompting it yourself
Generic prompts often result in "floaty" or slow animations that frustrate users. This skill enforces strict duration ranges, compositor-only property usage for 60fps performance, and mandatory reduced-motion fallbacks that standard LLMs frequently overlook.
Use cases
- Adding tactile feedback to mobile navigation and form buttons.
- Creating smooth entry and exit transitions for dynamic list items.
- Implementing high-performance page transitions between internal routes.
- Designing loading states that only appear after a 300ms delay to prevent flicker.
Known limitations
Focuses strictly on UI motion; does not cover complex character animation or 3D engine work. Performance guidelines prioritize transform and opacity over layout-triggering properties.
Focuses on compositor properties (transform, opacity). Skips complex character/3D animation. Requires user to provide the base UI components for animation attachment.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
This skill has been used 5 times.
Trust & safety
Security scan
Security scan passed 5 days ago
- Free with an Agensi account
Permissions
No special permissions declared or detected