<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alon Chitayat on Medium]]></title>
        <description><![CDATA[Stories by Alon Chitayat on Medium]]></description>
        <link>https://medium.com/@animishmish?source=rss-57a534172881------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sNbSeTOQ43WIgUvOswdSgQ.jpeg</url>
            <title>Stories by Alon Chitayat on Medium</title>
            <link>https://medium.com/@animishmish?source=rss-57a534172881------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 00:13:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@animishmish/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Teaching ChatGPT to create Lottie animations]]></title>
            <link>https://medium.com/@animishmish/teaching-chatgpt-to-create-lottie-animations-5cba189b1227?source=rss-57a534172881------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cba189b1227</guid>
            <dc:creator><![CDATA[Alon Chitayat]]></dc:creator>
            <pubDate>Wed, 17 May 2023 09:13:21 GMT</pubDate>
            <atom:updated>2023-05-18T06:16:36.963Z</atom:updated>
            <content:encoded><![CDATA[<h3>Teaching ChatGPT the Art of Lottie Animations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuAEvvM0PEf166WjGrDbEg.png" /><figcaption>Illustration by Alon Chitayat</figcaption></figure><p><strong>Every student is unique. </strong>A decade of teaching motion design has taught me there is never a single way to teach. But what happens when the only student in the room is an AI? Can ChatGPT learn how to create an animation based on a written description? how can a chat bot see and present an animation if it’s only using text?</p><p>I took the weekend to try and teach ChatGPT how to create “Lottie” animations. Here is the final result:</p><blockquote>A bowling ball and a ping pong ball simulation, made by ChatGPT.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*lmgI-jCGqTtDLkM4JAqCVw.gif" /><figcaption>A Lottie animation made by ChatGPT</figcaption></figure><h3>What are Lottie animations?</h3><h4>Lottie is the perfect solution for designers and developers who want to add motion to their websites and apps.</h4><p>Lottie is an open-source animation format, brought to life through the collaboration of <a href="https://twitter.com/airnanan">Hernan Torrisi</a> and <a href="https://airbnb.design/lottie/">Airbnb</a>. Lottie works seamlessly on any device or browser, so you can stop stressing over compatibility issues. Lottie’s vector structure allows you to scale animations without sacrificing quality or blowing up the file size like Gifs or videos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpha0b10yAHPQyndFqXhKQ.gif" /><figcaption>Lottie animation by Airbnb</figcaption></figure><h3>Why did I use Lottie animations?</h3><p>A significant advantage of Lottie animations is that they are code-based, making it easier for AI models like ChatGPT to learn and generate the code.</p><h3>Lesson 1: Can ChatGPT “see” motion by looking at the code?</h3><p>The first experiment was to figure out what ChatGPT sees when I feed it with a Lottie file code.</p><p>So, for this bouncy loader animation:</p><figure><img alt="Bouncy Loader animation" src="https://cdn-images-1.medium.com/max/1000/1*eHdg6_IvHzvObhsFw0lYHw.gif" /><figcaption>A Bouncy Loader Lottie animation</figcaption></figure><p>The code would look like this ( this is only part of the code):</p><pre><br>    &quot;v&quot;: &quot;5.10.2&quot;,<br>    //The frame rate of the animation<br>    &quot;fr&quot;: 60,<br>    //This describes the duration of the animation<br>    &quot;ip&quot;: 0,<br>    &quot;op&quot;: 120,<br>    //This describes the size of the composition<br>    &quot;w&quot;: 1000,<br>    &quot;h&quot;: 1000,<br>    //This describes the name of the animation<br>    &quot;nm&quot;: &quot;Bouncy loader&quot;,<br>    &quot;ddd&quot;: 0,<br>    &quot;assets&quot;: [],<br>    &quot;layers&quot;: [<br>        </pre><p><strong>Remember — ChatGPT is a text only interface</strong>, so I couldn’t show it a video as an example. I copied the “Bouncy Loader” JSON code and asked ChatGPT:</p><blockquote><strong>Look at this code and describe the motion that you see in the most poetic way</strong></blockquote><p><strong><em>ChatGPT:</em></strong></p><blockquote>The animation consists of five colorful circles that move in a bouncy and playful way, <strong>as if they are joyfully dancing to an imaginary beat</strong>. Each circle seems to have its own unique personality as they bounce up and down, <strong>reminding me of the lively bouncing balls in a children’s playground.</strong></blockquote><p><strong>I gave ChatGPT A+ for this assignment.</strong></p><h3>Lesson 2: Swapping Assets While Maintaining Animation</h3><p><strong>The second challenge was to see if ChatGPT could edit an existing Lottie code:</strong></p><blockquote>Try to edit the code of this animation so there is a blue square instead of the circle</blockquote><p>Surprisingly, this task went smoothly, as the AI quickly grasped the concept and was able to make the required changes. This success can be attributed to the AI’s ability to understand and manipulate JSON code, which is the backbone of Lottie files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xqx8obTCQcEn4XHaIdX1sw.gif" /></figure><h3>Lesson 3 : Talk the Talk and Animate the Animation</h3><blockquote><strong>I want you to create a new Lottie animation of a bouncy ball.</strong></blockquote><blockquote>The ball should be a simple, blue circle. It needs to drop from the top of the frame, and in the lower third of the frame, it should hit the floor and bounce three times before coming to a stop. Imagine how it loses height with each bounce — try to play with the easing so it feels like it’s bouncing, taking gravity and friction into account</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*1ib9S6Avfscdsg1u4UdNuQ.gif" /></figure><blockquote><strong>This is not bad, but it feels like a robo-ball.</strong></blockquote><p>To help ChatGPT learn how to fine tune the animation I used a variety of teaching resources:</p><h4>Pasting Code Examples</h4><p>When it comes to animation — timing <strong>is</strong> everything. I shared my Lottie animations code examples hoping that ChatGPT can learn simple motion patterns through them.</p><h4>Theoretical Explanations</h4><p>In addition to code examples, I provided ChatGPT with written explanations and learning materials:</p><ol><li><a href="https://physics.stackexchange.com/questions/256468/model-formula-for-bouncing-ball"><em>Physics model formula for bouncing ball</em></a></li></ol><p><em>2. Realistic Bounce and Overshoot </em><a href="https://www.motionscript.com/articles/bounce-and-overshoot.html"><em>After effects expressions by Dan Ebberts</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r004kUtX3MmAunrkCH84Gg.png" /></figure><blockquote>I asked for a bouncing ball animation — Here is the result:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ksl-9yUtbar1Y97t_gLRrg.gif" /></figure><p>Much better! But it looks like this ball is hanging on a rubber string, rather than bouncing.</p><h3>Lesson 4 : Abstract Conceptualization</h3><blockquote>Imagine that you are a Lottie JSON animation app. Use your knowledge in Math, Physics, motion theory &amp; Lottie animation skills to create an animation of a bouncy ball. Write all of the keyframes that are needed for a real world simulation, make it realistic.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*bg1q0RWhqagkchx-OjTeKA.gif" /></figure><blockquote>This was your best animation so far, I’m proud of you. It feels like you need a little bit more keyframes at the end to make it more realistic, want to try again?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mW3QvH7OGRPpYAnyKtkBDQ.png" /></figure><h3>Before we wrap this class up</h3><p>For those adventurous souls who find joy in spending their weekends teaching machines how to bounce a ball, here are some tips:</p><ol><li><strong>Start with simple tasks</strong>, like swapping assets in a Lottie file, to build the AI’s foundation in motion design. ChatGPT 4 can remember (sometimes).</li><li><strong>Use a mix of theoretical explanations</strong> <strong>and practical examples. </strong>Gradually introduce more complex concepts, like “Bounce” and “Overshoot”</li><li><strong>Be patient. </strong>Teaching “Overshoot” and “Bounce” animations to ChatGPT felt like mentoring a young, tired, and challenging 20-something student who just pulled an all-nighter. Work collaboratively to fine-tune its understanding.</li><li><a href="http://lottielab.com/"><strong>LottieLab, a new online Lottie animation editor</strong></a>, played a crucial role in testing the Lottie animations produced by the AI throughout the teaching process. With LottieLab, I could quickly and easily evaluate the animations generated by ChatGPT without using After Effects, providing animated feedback and rapidly refining the teaching approach as necessary.</li></ol><blockquote>While the animation outcome has yet to reach its full potential and the process remains challenging, this educational experiment sets the stage for a future where AI-driven motion design and Lottie animations enable the development of more intuitive animation tools.</blockquote><p>These tools allow designers who fear the timeline to imagine how they wish their design to move and describe it using simple words, empowering everyone to create captivating animations, with ease.</p><h4>What are your thoughts on AI-driven motion design?</h4><p>Would love to hear what you think! Please comment below, showcase your own animations, ask for an AI motion workshop or connect with me directly:</p><p>Alon Chitayat <strong>(</strong><a href="http://www.animishmish.com/"><strong>Website</strong></a><strong>, </strong><a href="https://www.linkedin.com/animishmish/"><strong>LinkedIn</strong></a><strong> )</strong></p><p><strong>Class evaluations from ChatGPT:</strong></p><blockquote>Imagine that you were a student in a Lottie animation class and this whole thread was the class — write your student evaluation and rate me as a professor</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McQQUkPGd8KBZikOgPYnOg.png" /><figcaption>Class evaluations from ChatGPT</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cba189b1227" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>