<?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 Dawid Lewandowski on Medium]]></title>
        <description><![CDATA[Stories by Dawid Lewandowski on Medium]]></description>
        <link>https://medium.com/@dawid.lewandowski?source=rss-794e9e0864d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*lXRQx6St1EnBPm97kpyRig.png</url>
            <title>Stories by Dawid Lewandowski on Medium</title>
            <link>https://medium.com/@dawid.lewandowski?source=rss-794e9e0864d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 19:49:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dawid.lewandowski/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[Guide on how to create lightweight and responsive web animations using SVG-Animate]]></title>
            <link>https://medium.com/brainly-design/guide-on-how-to-create-lightweight-and-responsive-web-animations-using-svg-animate-9adbf0d44726?source=rss-794e9e0864d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9adbf0d44726</guid>
            <category><![CDATA[brainly]]></category>
            <category><![CDATA[svg]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Dawid Lewandowski]]></dc:creator>
            <pubDate>Wed, 20 May 2020 08:32:50 GMT</pubDate>
            <atom:updated>2020-05-20T08:32:50.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SNAXoJO5ylzvb4CPcE3PA.png" /></figure><p>In the <a href="https://medium.com/brainly-design/lightweight-and-responsive-web-animations-using-svg-animate-80b8f4914b58"><strong>last article</strong></a>, we walked through the case of a new homepage animation to be viewed by over 200 million monthly users. Only a fusion of designer accessibility, software compatibility, and a lightweight file output would work. Now, I want to show you in detail how to use the tool that made it possible: SVG-Animate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N1lP0qC5pgxrd8XDxhGDbQ.gif" /><figcaption>Animation on our homepage made in SVG-Animate</figcaption></figure><h3>Detailed guide how to use SVG-Animate</h3><h4>1. Preparation</h4><p>Make sure you have all software you need, i.e.:<br><strong>Vector Software</strong>: <a href="https://www.adobe.com/pl/products/illustrator.html">https://www.adobe.com/pl/products/illustrator.html</a><br><strong>Code Editor</strong>: <a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a></p><p>Install <strong>Homebrew</strong> via your Terminal: <a href="https://brew.sh/">https://brew.sh/</a></p><p>With these installed, it’s time to download <a href="https://github.com/brainly/svg-animate"><strong>SVG-Animate</strong></a>. Just download and extract the ZIP file.</p><h4>2. Setting up the software</h4><p>Run Visual Studio Code and hit <strong>Open folder</strong>. Choose svg-animate-master and Open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkGFpKRBhEgd9yPy7mtGmA.png" /></figure><p>Go to <strong>Terminal</strong> &gt; <strong>New Terminal</strong></p><p>Install yarn using the command:</p><pre>brew install yarn</pre><p>Make sure yarn is updated, then run the command:</p><pre>yarn</pre><p>Create a config file using the command:</p><pre>yarn init-config</pre><p>You should receive the message:</p><pre>frames/config.yml has been created</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8WeMkl1uSlMb8hK3bg8AQ.png" /></figure><p>An important thing to note when using the terminal is to always write after your-computer-name-location-your-computer-name-$. If you are writing in an empty line, try pressing <strong>control + C</strong> to create a new line.</p><h4>3. Design guidelines</h4><p>Before you start designing, remember that:</p><ul><li>you have to work on Paths, not Shapes,</li><li>you can change the position of anchor points,</li><li>you can also change colors of fill and stroke,</li><li>when you want a path to move, add the word “animate” to the layer name</li><li>the names of layers and frames have to be unique and the same</li><li>the tool creates an auto-loop, so you don’t have to make the last frame the same as the first one</li></ul><p>Now that everything is set up, it’s time to prepare frames. For this article, I will use one of Michał Bednarski’s illustrations for Brainly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oRmxrOqgEqScLjSrI69nCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xy79DecFIIV0arwhnowTWQ.png" /></figure><p>On the left, I have the first frame, original illustration. On the right, I have modified:</p><ul><li>stars and shines</li><li>glow behind the pencil</li><li>motion of the body</li><li>nodding of the head</li></ul><h4>4. Layers overview</h4><p>Let’s take a look at the naming of layers. You only need to rename the elements you want to animate. As you can see, I have. “star 1 animate”, “star 2 animate”, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPKyNEBk0j36SZ5AGKtjxw.png" /></figure><h4>5. Export Frames</h4><p>Now that our keyframes are ready to go, we can export them to the <strong>frames</strong> folder. The proper way to do it is using <strong>File</strong> &gt; <strong>Export</strong> &gt; <strong>Export As…</strong> and pick SVG. You can name them, for example, xyz_frame_1 and xyz_frame_2. Below, you can see what to select in SVG Options. Repeat this process whenever you want to overwrite your frames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OlvVwOTiRvEQWogUT3h5_A.png" /></figure><h4>6. Running animation</h4><p>Now we’re back in Visual Studio Code. To create an animation itself, run the command:</p><pre>yarn start</pre><p>Your browser’s window should appear with the working animation. But wait, the timing’s off and the easing isn’t right! Oh yeah, everything is set to default…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hFuk_sbgOTB29a5b9XPxaw.gif" /></figure><h4>7. Adjusting attributes of animation</h4><p>Now we can dig into the<strong> config</strong> file to set duration, easing, and delay for each of our elements.</p><p>We can find this file in Visual Studio Code on the left sidebar. When we open it, we can see our default settings for elements that don’t have specified properties. As it’s defined in the file, you can specify the duration, delay, and easing of each element.</p><p>Duration and delay can be set in seconds [s] and milliseconds [ms].</p><p>Find out which easings are supported <a href="https://github.com/brainly/svg-animate#supported-easing-types"><strong>here</strong></a>.</p><p>You can set default attributes for all elements, or override some or all of them with specified attributes. Specified attributes are given priority over default settings.</p><p>An example of attributes:</p><pre>star_1_animate:<br>duration: &#39;2s&#39;<br>delay: &#39;0s&#39;<br>easing: &#39;easeInOut&#39;</pre><p>Remember to <strong>save the config file</strong> (you can do it using Command + S) to see the changes in the preview.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qAy95wp0AuBUDjmlvkP59w.gif" /></figure><p>After the adjustments, your animation is ready to go! You can download it and put it on your website.</p><p>If you want to know more about SVG-Animate and the story behind it, check out the <a href="https://medium.com/brainly-design/lightweight-and-responsive-web-animations-using-svg-animate-80b8f4914b58"><strong>article</strong></a> I’ve written<strong> </strong>about it.</p><p>Thank you for reading, and feel free to try out this new tool and tell us what you think of it.</p><p>Kudos to our innovative engineer <a href="https://github.com/bartoszlorek">Bartosz Lorek</a> and best-in-class editor <a href="https://medium.com/u/f94554d25970">Shyama Johnson</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9adbf0d44726" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly-design/guide-on-how-to-create-lightweight-and-responsive-web-animations-using-svg-animate-9adbf0d44726">Guide on how to create lightweight and responsive web animations using SVG-Animate</a> was originally published in <a href="https://medium.com/brainly-design">Brainly Design</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lightweight and responsive web animations using SVG-Animate]]></title>
            <link>https://medium.com/brainly-design/lightweight-and-responsive-web-animations-using-svg-animate-80b8f4914b58?source=rss-794e9e0864d------2</link>
            <guid isPermaLink="false">https://medium.com/p/80b8f4914b58</guid>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[svg]]></category>
            <category><![CDATA[brainly]]></category>
            <dc:creator><![CDATA[Dawid Lewandowski]]></dc:creator>
            <pubDate>Wed, 20 May 2020 08:30:41 GMT</pubDate>
            <atom:updated>2020-05-20T08:51:59.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Df6J5485aenmiey8mzajhA.gif" /><figcaption>Brainly homepage with new animation</figcaption></figure><p>Morphing is an effect that changes one image into another through a seamless transition. You can experience it in After Effects whenever you’re working with Paths or in Pure CSS animation. Here, you type in the axis values for each frame to create the illusion of motion. In the case of Paths, you need the help of Lottie Libraries to export your animation to SVG in order to add it to your website as a light image. With Pure CSS you have no visual to work with, and you may not even have the necessary coding skills to get started. There is also a third way. A designer-friendly tool called SVGator lets you import your SVG and create an animation for use online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q02TdKoGob_OCCIdiNzktQ.png" /><figcaption>Illustration by Michał Bednarski</figcaption></figure><h3>Which method did we choose?</h3><p>Here’s how we used it at Brainly. We have over 200 million users monthly, so we have to keep our site as light as possible. For our animation, a Lottie takes up 237kB plus design with animation code, making it too heavy for our policy of hardware inclusivity. The second option was to give two frames of animation to the developer to combine them. But with all the animated characters involved, we were sure the designer would have a lot of adjustments afterward connected with shapes, timing, and easings. So, like Goldilocks, we found the third option to be just right. Right? Wrong.</p><p>SVGator allows you to upload SVG frames to create an animation out of them, but as an in-browser tool, it doesn’t let you save your work along the way. Its CSS-only mode is very limited and trying to use Bezier handles turned out way worse than in regular vector software. What we were missing in all three options was a combination of: the designer’s control of the animation while combining the images, comfort in using software to modify frames, and a lightweight output. In conclusion, none of the tools available fit our goal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRCkuF8k0R14aJGOFvgGsg.png" /></figure><h3>SVG-Animate</h3><p>Fortunately, <a href="https://github.com/bartoszlorek"><strong>Bartosz Lorek</strong></a> — Software Engineer at Brainly, came up with the idea of creating a tool that allows the designer to preview auto-animation of two or more static images. <a href="https://github.com/brainly/svg-animate"><strong>SVG-Animate</strong></a> works very simply: You have a folder where you save your static SVG files from which the tool creates your animation. You also have a config file where you add data like time, easings, and delay to control the animation. Importantly, you can overwrite the file and check the changes in a live preview mode in your browser. All you need, apart from a tool for creating SVG images, is software like Visual Studio Code to combine said files. Of course, there are some limitations. All shapes have to be named properly to morph, and not all of the transformations are allowed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vSXKiXsCfURqsReDQ6_IOA.png" /><figcaption>Tools comparison from the designer’s perspective</figcaption></figure><p>What are the potentials of SVG-Animate?</p><ul><li>Moving paths, polygons, polylines and lines</li><li>Controlling the time of element animation</li><li>Adding delay to element animation</li><li>Adding one of 29 different easings to animation</li></ul><p>SVG-Animate requires less than basic knowledge of CSS. Your own smarts along with directions from this article should be plenty to get you started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqEaPaFkOOnxC8OkMj9JPw.gif" /><figcaption>Our homepage animation is now just 121kB</figcaption></figure><h3>New Brainly Homepage Animation</h3><p>Let me take you through the process behind it.</p><p>Designer:</p><ul><li>prepares SVG frames in Adobe Illustrator</li><li>uses SVG-Animate to preview the animation</li><li>uses SVG-Animate to set timing and easings</li><li>delivers fully working animated SVG file</li></ul><h4>Developer:</h4><ul><li>implements SVG on website</li></ul><h3>How to use SVG-Animate?</h3><p>Source: <a href="https://github.com/brainly/svg-animate">https://github.com/brainly/svg-animate</a><br>Code editor: <a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a><br>Vector software: <a href="https://www.adobe.com/pl/products/illustrator.html">https://www.adobe.com/pl/products/illustrator.html</a></p><p>There will be a folder named Frames — the most important for you as a designer. This is where you put your SVG frames and where you’ll find the config file that allows you to manipulate each shape in your animation.</p><p>After I received access to the tool, I prepared my image for animation by:</p><ul><li>Organizing layers by grouping and renaming them properly to simplify the arrangement,</li><li>Adding the word <em>animate</em> to the layers I wanted to morph,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPKyNEBk0j36SZ5AGKtjxw.png" /></figure><p>If your file is cleaned up and named properly, you can start working on the next frames. Keep in mind restrictions that are listed on the Github page for the tool. For example, the number of anchor points for the animated element has to be the same in each frame.</p><p>Your best friends here are the <strong>Pen Tool</strong> and the <strong>Direct Selection Tool</strong> (working in Illustrator). Using these tools you can move anchor points and manipulate bezier handles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0XPUiKMTu_Nh76u6xCbpg.png" /></figure><p>If you have your SVGs already in the frames folder, you can preview your animation in-browser. Even better, whenever you override changes in a file it automatically updates in your browser, giving you a virtually live view of what you are working on.</p><p>How cool is that?</p><p>If you want detailed tutorial on how to use SVG-Animate, check out follow up <a href="https://medium.com/brainly-design/guide-on-how-to-create-lightweight-and-responsive-web-animations-using-svg-animate-9adbf0d44726"><strong>article</strong></a> I’ve written<strong> </strong>about it.</p><p>Thank you for reading, and feel free to try out this new tool and tell us what you think of it.</p><p>Kudos to our innovative engineer <a href="https://github.com/bartoszlorek">Bartosz Lorek</a> and best-in-class editor <a href="https://medium.com/u/f94554d25970">Shyama Johnson</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80b8f4914b58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly-design/lightweight-and-responsive-web-animations-using-svg-animate-80b8f4914b58">Lightweight and responsive web animations using SVG-Animate</a> was originally published in <a href="https://medium.com/brainly-design">Brainly Design</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>