LitMotion — Zero Allocation Tween Library

Create zero-allocation tweens for Unity UI and gameplay animations.

Updated May 6, 2026
One-click install
npx skills add https://github.com/BasarEkinci/memory-card-game --skill litmotion-zero-allocation-tween-library
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: LitMotion — Zero Allocation Tween Library
Source: https://github.com/BasarEkinci/memory-card-game/tree/main/.claude/skills/third-party/litmotion
Command: npx skills add https://github.com/BasarEkinci/memory-card-game --skill litmotion-zero-allocation-tween-library

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LitMotion solves performance and garbage-collection issues caused by allocation-heavy tweening libraries, helping you keep frame times stable while animating gameplay and UI.

Core Features & Use Cases

  • Zero-allocation motion creation for frequent card flips, HUD transitions, and responsive UI animations without GC spikes.
  • Fast builder-style configuration including easing, delays, looping modes, scheduler selection, and completion/cancel callbacks.
  • Rich motion coverage across primitives, Unity transforms, colors, RectTransform, and UI components, plus punch and shake effects.
  • Use Cases: animating card matches in a memory game, smooth WebGL-friendly UI transitions, deterministic motion sequences, and high-frequency micro-interactions.

Quick Start

Ask: "Show me how to install LitMotion and create a zero-allocation tween that moves a transform from Vector3.zero to Vector3.one over one second using an ease-out curve."

Frequently Asked Questions about LitMotion — Zero Allocation Tween Library

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

FAQPage Schema
How do I prevent GC spikes from frequent Unity UI animations?

To prevent GC spikes from frequent Unity UI animations, use a zero-allocation tweening library that avoids closure allocations during motion creation, keeping frame times stable during high-frequency micro-interactions.

What is zero-allocation tweening in Unity and when do I need it?

Zero-allocation tweening in Unity is an animation technique that creates motion without generating garbage, which is needed when animating gameplay and UI elements frequently to maintain stable frame times.

Do I need Unity Burst and DOTS workflow to use a zero-allocation tween library?

Yes, a zero-allocation tween library requires Unity 2021.3+, Burst, collections, and a DOTS-oriented workflow to manage MotionHandle control, schedulers, and zero-closure binding patterns effectively.

How do I create a zero-allocation tween to move a Unity transform with an ease-out curve?

To create a zero-allocation tween to move a Unity transform, configure the motion using a builder pattern to define start and end positions, duration, and easing curves without generating garbage collection overhead.

How does migrating from DOTween to a zero-allocation tween library improve animation performance?

Migrating from DOTween to a zero-allocation tween library improves performance by eliminating garbage collection overhead from frequent animations, utilizing MotionHandle control and schedulers for deterministic motion sequences.

Can I apply punch and shake effects to RectTransforms without causing garbage collection?

Yes, you can apply punch and shake effects to RectTransforms without causing garbage collection by using zero-closure binding patterns and scheduler selection within a zero-allocation tweening workflow.