<?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 Natalie Kwok on Medium]]></title>
        <description><![CDATA[Stories by Natalie Kwok on Medium]]></description>
        <link>https://medium.com/@ehnkay?source=rss-87dc7239d7db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9ElAIlDuUAABXRJqO-v2WA.jpeg</url>
            <title>Stories by Natalie Kwok on Medium</title>
            <link>https://medium.com/@ehnkay?source=rss-87dc7239d7db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:22:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ehnkay/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[SVG Animations For Beginners]]></title>
            <link>https://medium.com/@ehnkay/svg-animations-for-beginners-cc2c9c5bcb5b?source=rss-87dc7239d7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc2c9c5bcb5b</guid>
            <category><![CDATA[svg-animation]]></category>
            <category><![CDATA[svg]]></category>
            <dc:creator><![CDATA[Natalie Kwok]]></dc:creator>
            <pubDate>Sat, 17 Jun 2017 22:46:18 GMT</pubDate>
            <atom:updated>2017-06-17T23:26:18.822Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember the first time I was introduced to SVG animations in my part-time web development class at <a href="https://medium.com/u/c84b417d4f91">HackerYou</a>. SVGs, a.k.a. Scalable Vector Graphics, are essentially shapes written in code that can be combined to create an image. They’re generally created with illustrating software, such as Adobe Illustrator or Sketch, and then exported as an SVG file which can then be incorporated in HTML with an &lt;img&gt; tag, or copying the SVG code directly. As an example of the cool things that could be done with SVGs, our instructor showed us <a href="https://medium.com/u/3cd64520f799">Nat Cooper</a>’s <a href="http://natcooper.com/self-portrait">animated self-portrait</a>. I was (and still am) completely amazed by it, but also felt <em>very</em> intimidated because of how complicated it looked. My show and tell presentation for bootcamp was the perfect push that I needed to attempt to play around with SVGs. While I’m far from being a pro at SVG animations, here’s a beginner’s guide to creating your own SVG animation.</p><p>First off, SVG animations are written in XML. When you open an SVG file, you’ll find yourself looking at a long series of numbers interspersed with a few letters. These numbers and letters are grouped into &lt;path&gt;’s that define a shape (e.g. circle, rectangle). The &lt;path&gt;’s are then grouped into &lt;g&gt;’s to create a larger visual component. While the numbers and letters may not make much sense for now, I would suggest that a beginner think of these elements semantically as you would in regular HTML. Specifically, think of &lt;g&gt;’s as a parent element, and &lt;path&gt;’s as a child element of the &lt;g&gt; . I promise this will make a bit more sense as we go on!</p><p>SVGs can be animated using Synchronized Multimedia Integration Language (SMIL). SMIL uses the XML syntax, which means it can be embedded into SVG code to allow for animations without having to create a separate style sheet. SMIL animation elements include &lt;animate&gt;, &lt;animateColor&gt;, and &lt;animateMotion&gt;. These elements use properties such as path to define coordinates for motion animation, duration, repetition, etc. However, SMIL is not really being used anymore, and according to MDN, Chrome was even thinking of deprecating it. Why? Because animations can now be created with just good old CSS and JavaScript!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDD5uR_m4TlIdh-uNWSe3A.png" /><figcaption>SVG code. What do all these numbers and letters even mean?!</figcaption></figure><p>With CSS and JavaScript, you can create your own SVGs in your illustrating software of choice, and then use them as you would any other image/media in CSS animations. For example, using keyframes, transitions, positioning, etc. Using CSS, you can also “unlock” properties specific to SVG attributes. An example would be using the stroke-dasharray and stroke-dashoffset properties to create line animations, similar to SMIL &lt;animateMotion&gt; path effects. You can also use JavaScript to make animations even more interactive.</p><p>While knowing that you can create SVG animations with just CSS and JavaScript is encouraging to hear as a beginner, I still felt like I was at a roadblock. As someone who has zero artistic talent and doesn’t own any illustrating software, I wasn’t too sure how I was going to create my own SVGs to play around with. Thankfully, I remembered the <a href="https://thenounproject.com/">Noun Project </a>— a great resource filled with free SVGs to play with!</p><p>After downloading a bunch of SVGs from the Noun Project, I copied the code into an HTML file, opened it in my browser, and then most importantly, <strong>opened my dev tools</strong>. This was when all the numbers and letters started to make a little bit more sense. Upon inspecting the &lt;path&gt;’s and &lt;g&gt;’s, I was able to isolate the shapes that they made. I was then able to think of these elements more semantically and edited the code accordingly. I gave &lt;g&gt;’s and &lt;path&gt;’s classes to describe to myself which shape each individual &lt;path&gt; made, and how these &lt;path&gt;’s grouped together within the &lt;g&gt;’s. From there, I was able to use my good friend CSS to transform an originally static SVG image into an animated one</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETuARZICDgbCb6xVxctauA.png" /><figcaption>Use your browser’s dev tools to help you make sense of an SVG’s code. Here, I have edited the code and structured it the way I would HTML, and assigned classes to provide more semantic descriptions of the code.</figcaption></figure><p>Take a look at my final animation on my codepen: <a href="https://codepen.io/ehnkay/pen/QgdrgG">https://codepen.io/ehnkay/pen/QgdrgG</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fehnkay%2Fembed%2Fpreview%2FQgdrgG%3Fheight%3D600%26slug-hash%3DQgdrgG%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fehnkay%2Fpen%2FQgdrgG&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8969fa01808907ac1d78af72d7db754/href">https://medium.com/media/c8969fa01808907ac1d78af72d7db754/href</a></iframe><p>While creating my animations, I came across a few limitations.</p><p>Firstly, as I was using SVGs from the Noun Project instead of one I made myself, I was limited by the paths that were defined. For example, I found a very cute Totoro SVG on the Noun Project that I wanted to try animating into Totoro waving. However, when I was inspecting with the dev tools, I found that it would not be possible, since his entire body was one path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYZx-mlaFErPmlVoNr8lHg.png" /><figcaption>I wanted to isolate Totoro’s arm to animate him waving, but found that I could not as his entire body was one &lt;path&gt; element.</figcaption></figure><p>I also found that the SVGs seemed to have their own “viewport” and elements that moved outside of this viewport are “cropped out” and not seen. After a long time spent inspecting with dev tools, I finally found the piece of code that was responsible for this: <strong>svg:not(:root) { overflow: hidden }</strong>. I was able to fix this problem by changing the default to overflow: visible. While I’m not sure if this was just because I was using an SVG from the Noun Project or if this is a default set on all SVGs, it is something to keep in mind, as it could affect how much of your animation is visible.</p><p>Finally, when using CSS to animate SVGs, it’s important to remember that not all CSS properties will work exactly as usual or even at all with SVGs. Some properties might have a different name — for example, the color property is called fill, and the border property is called stroke. I also found that absolute/relative positioning did not work at all with SVG paths. Instead, I had to use transform: translate property instead in order to move elements around on the page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc2c9c5bcb5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Questions to ask yourself when choosing a website design]]></title>
            <link>https://medium.com/@ehnkay/questions-to-ask-yourself-when-choosing-a-website-design-f5edca1334a0?source=rss-87dc7239d7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5edca1334a0</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Natalie Kwok]]></dc:creator>
            <pubDate>Sun, 30 Apr 2017 22:08:42 GMT</pubDate>
            <atom:updated>2017-04-30T22:08:42.640Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello friends and people of the interwebs! As some of you may know, this past week I started the 9-week Front-End Web Development Immersive program (a.k.a. bootcamp) at HackerYou. By the end of bootcamp, I will have a portfolio to show off all the awesome things I built throughout the 9 weeks. But first — since I’m not a designer — I have to choose a design for my portfolio. As a break from coding, I’ve been browsing through Themeforest for website designs. But with so many aesthetically pleasing designs to choose from, how am I supposed to settle on just one?! Here are a few questions I’ve been asking myself in an effort to narrow down my choices:</p><h3>As a functional website, will this design be easy to navigate as a user?</h3><p>Sure, a design might <em>look</em> pretty, but if the end product is a website that is difficult or confusing to use, then it’s probably not the ideal choice. You want to choose a design that is intuitive to use. Easily recognizable and consistent patterns in design will make for a smoother user experience. Having previously worked in healthcare, and specifically with populations with intellectual and learning disabilities, I feel this is especially important when considering accessibility of your website.</p><p>For example, as I scrolled through Themeforest, I noticed that many designs did not include a fixed menu or one that could be toggled on and off the screen. In these designs, the menu is only accessible when the user is scrolled to the very top of the home page. This meant that if I wanted to jump to a specific section or page on the site, I would have to scroll all the way back up to the top of the page to first find the menu. Although this is just a small annoyance to me, it could potentially be confusing to another user trying to navigate through the site. While my example can be easily solved by the developer on their own, why not choose a design that already has these considerations in mind?</p><h3>Will it be easy for me as a developer to tweak this design if I choose to in the future?</h3><p>(I once read somewhere that a good developer is a lazy developer. So I’m trying to be considerate of my future lazy (efficient!!) self…)</p><p>For me, this question has to do with choosing between a single page design or a multipage design in relation to the website’s content. Specifically, is the content of the site relatively static or will I be constantly adding/removing sections of content in the future? If it’s the latter, will the design still look good if I add/remove sections, or does it only look good the way the designer has laid out? And more importantly, will it be easy to add/remove sections or will it cause my entire page to break?! In which case, how much time will I have to spend trying to fix my code if it breaks? If I foresee myself having to spend a lot of time trying to fix a broken layout on a single page, would it just be easier to have a multipage design and create a new page instead of subsection?</p><p>So many questions that I don’t quite have the answers to. I think this will involve a bit of trial and error on my part. Maybe I’ll write another blog post on this when I’ve figured it out. Or if you have any suggestions, please let me know!</p><h3>Where is my attention drawn to?</h3><p>It always makes me happy when my psychology degree comes in handy in the real world; I didn’t waste 4 years of my youth and thousands of dollars for nothing! Since my portfolio is going to be seen by potential employers, I want to make sure that their focus is being intentionally directed to what I want them to look at.</p><p>Many designs I’ve seen use a grid of some sort, and I generally like grids because they help make your page look nice and organized. However, they can also be very distracting depending on how they are used. When the goal is to direct the user’s attention to something specific, it is important to keep grids simple and clean.</p><p>I personally don’t like more than 3 columns when using a grid, especially if you have a wrapper to contain the entire grid (e.g. not full bleed). More than 3 columns — especially if text is involved — and I find that each individual container starts to get too small and may not be as readable as you would like. Of course, this varies depending on the user’s screen size and you want to keep responsiveness in mind.</p><p>I am also not a fan of cascading grids (think Pinterest). I find them to be distracting when I’m trying to focus on one specific item. As they give the perception of movement, it can cause your eye to wander off to the adjacent items in your grid before you’ve fully processed the information in the first item. For that reason, I find that using consistent dimensions in a grid is most helpful in getting someone to focus on specific content.</p><p>I’m sure there’s a long list of other factors to consider when choosing a website design, and I would love to hear what other people look for. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5edca1334a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>