smooth-state-animation

Interpolate numeric state values with cubic easing in an update loop.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/mlinnen/mr-pumpkin --skill smooth-state-animation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smooth-state-animation
Source: https://github.com/mlinnen/mr-pumpkin/tree/main/.squad/skills/smooth-state-animation
Command: npx skills add https://github.com/mlinnen/mr-pumpkin --skill smooth-state-animation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This pattern provides a reliable approach to interpolate numeric state values to create smooth, natural animations instead of abrupt jumps.

Core Features & Use Cases

  • Smooth interpolation with easing functions (e.g., cubic, quadratic) for transitions in UI components, game visuals, and motion graphics.
  • Handles 2D positions, rotations, scales, and opacity with a single, reusable pattern.
  • Real-world scenario: smoothly moving a panel from left to right while fading in to reduce visual jank.

Quick Start

Turn a current value into a smoothly eased target over a configurable duration.

Frequently Asked Questions about smooth-state-animation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create smooth state transitions with easing for UI animations?

You can create smooth state transitions by interpolating numeric state values over a configurable duration, tracking animation state, start and target values, and applying cubic easing within a delta time update loop to eliminate abrupt UI jumps.

What is the best way to interpolate 2D positions, rotations, and opacity without visual jank?

To interpolate 2D positions, rotations, scales, and opacity without jank, apply a reusable interpolation pattern that uses cubic or quadratic easing functions to smoothly progress values between start and target states over time.

How does delta time interpolation work for game visuals and motion graphics?

Delta time interpolation works by tracking animation state, duration, and target values, then calculating the eased progress between start and target values per frame based on the elapsed delta time to produce smooth motion graphics.

Can I use this state transition pattern for fading in a panel while moving it?

Yes, you can use this state transition pattern for fading in a panel while simultaneously moving it, as it supports interpolating multiple numeric values like opacity and 2D positions concurrently to reduce visual jank.

What are common anti-patterns when implementing easing functions for state transitions?

Common anti-patterns when implementing easing functions for state transitions include failing to track animation state accurately, ignoring delta time in the update loop, and abruptly jumping to target values instead of smoothly interpolating progress.