Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Motion & Micro-interactions — Springs, View Transitions

    1

    Add high-performance UI transitions and micro-interactions with correct timing, springs, and accessibility support.

    Free

    5 uses5.0 (1 review)
    Motion & Micro-interactions — Springs, View Transitions

    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 layout prop behavior if items change size dynamically.
    • Test the interaction on a device with "Reduce Motion" enabled in system settings.
    • Adjust the stiffness to 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

    1. Identify purpose by categorizing the interaction as feedback, orientation, continuity, or status.
    2. Apply timing using specific ranges such as 100-150ms for hovers or 250-400ms for page panels.
    3. Configure easing using defined cubic-bezier curves or spring physics constants.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    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

    Listed5 days ago
    Updated1 day ago

    What's inside

    Frequently Asked Questions

    This skill provides structured logic and code recipes for implementing high-performance UI motion, such as spring-based button feedback and shared-element transitions, while ensuring 60fps performance and accessibility compliance.

    The skill is compatible with modern web frameworks including React (via Framer Motion), Vue, and vanilla CSS, and can be integrated into most AI development agents that support custom UI instructions.

    Unlike standard prompts, this skill enforces strict duration ranges and compositor-only property usage to prevent "floaty" animations and ensures mandatory reduced-motion fallbacks for accessibility.

    You will receive a comprehensive library of motion design patterns, easing curves, and performance-optimized implementation recipes for CSS, JavaScript, and major UI libraries.

    Yes, it includes logic for 'skeleton screens' and loading states that utilize a 300ms delay to prevent visual flicker on fast-loading elements, improving perceived performance.

    While it excels at UI transitions and interface feedback, it is not designed for character animation, complex 3D engine work, or layout-heavy animations that trigger reflows.

    New in Frontend & Web Apps