# stretchy morph ui

> Physics-based spring engine for creating organic, stretchy, and morphing web micro-interactions.

stretchy morph ui is a free AI agent skill on Agensi by pafemilk, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [pafemilk](https://www.agensi.io/creators/pafemilk)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/stretchy-morph-ui
- Tags: web-design, javascript, physics-engine, ui-ux, animation

## About this skill

Modern web interfaces often feel static, with state changes that jump instantly or follow rigid, linear easing curves. This lack of fluidity makes apps feel like a series of disconnected screens rather than a cohesive, physical object. This skill replaces standard CSS transitions with a high-performance spring engine, enabling interfaces that squash, stretch, and morph based on physical momentum.

### What it does
- **Physics-driven motion** uses a damped harmonic oscillator engine for realistic spring dynamics rather than time-based easing.
- **Dynamic morphing** deforms UI elements during transitions, such as buttons transforming into loading indicators or tabs stretching like elastic.
- **Fluid micro-interactions** adds organic feedback like volume-preserving squashes, kicks, and lagging followers to standard controls.
- **Code auditing** scans existing projects to identify components that would benefit from elastic motion.
- **Accessibility compliance** automatically handles reduced-motion preferences to ensure inclusivity.

### How it works
1. **Audit phase**: Run `scripts/audit_ui.py` to scan your codebase for motion candidates and stack compatibility.
2. **Design phase**: Write a "morph sentence" for each interaction to define the cause and effect of the stretch.
3. **Implementation**: Integrate the `stretchy-core.js` engine and map UI states to spring values (stiffness and damping).
4. **Verification**: Execute `scripts/check_page.py` to generate contact sheets and verify visual continuity across frames.

### Frameworks & tools
Built for vanilla JS, React, Vue, and Svelte environments. It utilizes a custom semi-implicit Euler integration engine and headless browser scripts for visual testing.

### Why this beats prompting it yourself
Writing physical spring logic that handles retargeting without resetting velocity is complex. This skill provides a battle-tested engine and a library of 24 reference components that solve common pitfalls like content reflow and layer ordering.

### Use cases
- **Navigation systems** creating "worm" indicators for tabs or segmented controls.
- **Interactive buttons** that bulge, squeeze, or morph into status marks.
- **Cart workflows** throwing product items into a vibrating cart icon with arc physics.
- **Dashboard transitions** where cards expand into modals using split-axis springs.

### Known limitations
Does not support time-based paths where the specific shape of the curve (like a circular arc) is required without manual coordination. Requires manual re-syncing on window resize or font load.

## Requires

- Python
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the stretchy morph ui skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the 'stretchy morph ui' engine differ from standard CSS transitions?

Traditional CSS transitions use rigid time-based easing, whereas this skill uses a physics-driven spring engine that accounts for momentum and mass, resulting in organic, tactile interactions that feel like physical objects rather than flat digital pixels.

### Which web frameworks are compatible with this skill?

The package is framework-agnostic and includes optimized hooks and components specifically for React, Vue, and Svelte, as well as a lightweight core for vanilla JavaScript environments.

### What specific assets are included in the purchase?

You receive the 'stretchy-core.js' spring engine, automated audit and verification scripts, and a comprehensive library of 24 reference components including navigation 'worms' and morphing buttons.

### Does this skill support accessibility and users with motion sensitivities?

Yes, the skill includes a built-in accessibility layer that detects 'prefers-reduced-motion' settings and automatically replaces high-velocity spring animations with simplified, static state changes.

### Can I integrate these physics-based interactions into an existing project, or is it for new builds only?

The included 'scripts/audit_ui.py' tool scans your existing codebase to identify the best candidates for elastic motion and provides a roadmap for implementation without requiring a full site rewrite.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
