Abstract
Large language models (LLMs) have the potential to impact a wide range of creative domains, but the application of LLMs to animation is underexplored and presents novel challenges such as how users might effectively describe motion in natural language. In this paper, we present Keyframer, a design tool for animating static images (SVGs) with natural language. Informed by interviews with professional animation designers and engineers, Keyframer supports exploration and refinement of animations through the combination of prompting and direct editing of generated output. The system also enables users to request design variants, supporting comparison and ideation. Through a user study with 13 participants, we contribute a characterization of user prompting strategies, including a taxonomy of semantic prompt types for describing motion and a 'decomposed' prompting style where users continually adapt their goals in response to generated output. We share how direct editing along with prompting enables iteration beyond one-shot prompting interfaces common in generative tools today. Through this work, we propose how LLMs might empower a range of audiences to engage with animation creation.
Introduction
Creating 2D animations is a notoriously "high-floor" task, requiring a rare overlap of visual design sensibility and technical implementation skills, such as CSS or JavaScript. Even for professionals, the "handoff" from a static design tool to an engineering implementation remains a major bottleneck. While recent generative AI has mastered text-to-image tasks, these models are typically "one-shot" and lack the granular control needed for the iterative nature of animation. Designers require a tight feedback loop where they can adjust specific elements—like the timing of a spark or the easing of a rocket launch—without regenerating the entire scene. Keyframer addresses this gap by treating animation as a collaborative process between human intent and LLM-generated code.
System Design and Methodology
Keyframer is a web-based prototyping environment built on GPT-4 that transforms static SVG images into 2D animations through natural language prompting and CSS code generation. The system architecture follows a structured flow:
- SVG Input: Users provide a static SVG. The system pre-processes the SVG XML to ensure clean, human-readable IDs for different layers (e.g.,
sky,clouds,planet). - Natural Language Prompting: Users enter requests like "make the stars twinkle." Keyframer sends the SVG structure and the prompt to GPT-4, which returns CSS animation code.
- Rendering and Direct Editing: The generated CSS is injected into a live preview. Keyframer provides two bi-directional editors: a Code Editor for direct CSS tweaks and a Properties Editor (a GUI for colors, timing, and easing).
- Iterative Refinement: Users can request design variants to explore different aesthetics or use a "decomposed" prompting strategy to build up complex scenes element-by-element.
To evaluate the tool, a user study was conducted with 13 participants ranging from novices to experts. The study utilized benchmark SVG illustrations, including "The Saturn Scene" and "The Rocketship Scene," to test simultaneous and sequenced animations.
Key Insights and User Strategies
The study revealed several critical behaviors in how users interact with LLMs for creative tasks:
- Decomposed Prompting: Users rarely employed "holistic" prompts for an entire scene. Instead, they favored a "decomposed" strategy—animating one element at a time, evaluating the result, and then moving to the next. This suggests that for creative tools, the ability to "stack" prompts is more vital than understanding a single complex instruction.
- Semantic vs. Specific Requests: Approximately 84.4% of user prompts were "semantic" (e.g., "make it look magical"). Users preferred describing the feeling of motion over technical parameters. The LLM effectively acted as a translator between artistic "vibe" and technical syntax.
- The "95/5" Rule: Participants often used the LLM to generate 95% of the boilerplate code and then utilized direct editors for the final 5% of polish. This highlights that AI in design should augment rather than replace traditional editing tools.
Results and Performance
Keyframer demonstrated significant potential in empowering users across skill levels:
- Efficiency: GPT-4 generated high-quality code in an average of 17.4 seconds, with only 6.7% of snippets containing syntax errors.
- Hybrid Usage: 69.2% of participants actively used the direct editors to refine the AI's output, confirming that a "chat-only" interface is insufficient for professional design work.
- Empowerment: Novices with no coding experience successfully created complex animations, while experts found the tool significantly accelerated the prototyping phase.
Conclusion
Keyframer demonstrates how LLMs can lower the barrier to animation creation by combining generative power with direct control. Future work includes expanding the tool's capabilities to allow for the creation of new SVG elements and supporting state-based interactivity. By bridging the gap between natural language and code, Keyframer offers a glimpse into the future of collaborative, AI-assisted design.
Summary updated