<?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 Christina Laba on Medium]]></title>
        <description><![CDATA[Stories by Christina Laba on Medium]]></description>
        <link>https://medium.com/@christinalaba?source=rss-265c4dcdf186------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*brmP7GAVc-nY7sia.</url>
            <title>Stories by Christina Laba on Medium</title>
            <link>https://medium.com/@christinalaba?source=rss-265c4dcdf186------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 09:32:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@christinalaba/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[Use GSAPs SVG draw plugin to animate any font or shape]]></title>
            <link>https://medium.com/@christinalaba/use-gsaps-svg-draw-plugin-to-animate-any-font-or-shape-74324e6d169b?source=rss-265c4dcdf186------2</link>
            <guid isPermaLink="false">https://medium.com/p/74324e6d169b</guid>
            <category><![CDATA[svg]]></category>
            <category><![CDATA[motion-graphics]]></category>
            <category><![CDATA[gsap]]></category>
            <category><![CDATA[greensock]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Christina Laba]]></dc:creator>
            <pubDate>Tue, 13 Aug 2019 13:44:59 GMT</pubDate>
            <atom:updated>2019-08-14T14:12:42.112Z</atom:updated>
            <content:encoded><![CDATA[<h3>Use GSAPs Draw SVG plugin to animate any font or shape</h3><p><a href="https://greensock.com/drawsvg/">GSAPs DrawSVGPlugin</a> allows you to progressively reveal (or hide) the <strong>stroke</strong> of an SVG but not the <strong>fill. </strong>This article will outline how you can setup your SVG to work around this and still achieve the effect of text or shapes being drawn.</p><p>Here’s a code pen showing the finished effect: <a href="https://codepen.io/dev_cat/pen/WVagam">https://codepen.io/dev_cat/pen/WVagam</a></p><p><strong>Quick overview</strong>: In illustrator we will outline the font we want to animate. We then trace over our font using the pen tool, increase the stroke of this tracing to entirely cover the outline of the font. Use the outline of the font to mask the line so that it looks like our font again. We then insert this SVG into our code and reveal the masked tracing using GSAP.</p><p><strong>SET UP SVG</strong></p><p>1.You should first take a minute to size your text to the right size that you need it to be displayed on your browser (means less code manipulation later). Then select the text and select <em>Type&gt;Create Outlines.</em> The text is now outlined and ready to use as a mask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7H7BF5wkKA4uosBuwGYbw.png" /></figure><p>2. Since GSAP Draw only allows strokes to be animated, if we just used this outlined text it would draw the outline of the font instead of the actual text. To go about this, we are going to trace the text using the pen tool. This is the path that the text will reveal itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDxfp3xVHcSJAi51xgpjsA.png" /></figure><p>3. Now increase the stroke of the tracing (blue) till it completely covers the outlined “CHALK” text (purple). Try to keep the stroke as thin as possible. You might need to move/add some points to your path in order to get the path perfect but make sure you cover all these little visible areas (circled in red).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_LwDSS5rThST6OflFXE3Fw.png" /></figure><p>4. Next, we will bring the outlined “chalk” text layer to the top of the traced layer. Then select both layers and create a clipping mask <em>Object&gt;Clipping Mask&gt; Make</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0l7p65nA3nE7_NEkk2Qe8A.png" /></figure><p>5. Now your tracing(blue) has been masked to take on the shape of the outlined text (purple) but since it is still a path, we are able to animate it using SVG draw. You can also combine the paths at this point if you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jl6WVuTMM3nsPz_QYrqAkA.png" /></figure><p><strong>EXPORT SVG TO CODE</strong></p><p>1.First step is to name your layers appropriately as these layer names will become ID’s in your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*DEHJ1Ph2hShUnpQJZmcU8w.png" /></figure><p>2. Then click S<em>ave A Copy</em> and select<em> SVG </em>from the <em>Format</em> dropdown.</p><p>3. When you hit <em>Save</em> the SVG options appear and you can select <em>SVG Code</em>. This will bring up a .txt file with your SVG in code format. Copy this code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o9KWNxXYmRsDWkJwZlvScg.png" /></figure><p><strong>CODE SETUP</strong></p><p>1.Paste your SVG code into your HTML. SVGs can get very long and ugly, I’m not going to go into the ways to clean this up. For now, just minimize it in the html and don’t think about it too much.</p><p>2.You will see that there are 3 elements to each letter that we want to animate. The IDs are automatically generated but you can go in and change this if you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtBhHhS0t0MEu3E7DXbp1A.png" /></figure><p>There is a:</p><ul><li>&lt;path&gt; with the ID of #C_x5F_Mask (this is the original purple font)</li><li>&lt;clipPath&gt; with the ID of #C_x5F_Mask_1_ (this is the mask we created)</li><li>&lt;path&gt; with the ID of #C_x5F_Path (this is blue tracing)</li></ul><p>2. Make sure to attach the DrawSVGPlugin to your script files and link to it through your HTML.</p><p>3. We are now ready to animate the blue tracing <em>#C_x5F_Path </em>using GSAP.<em> </em>In the code below we are revealing the path from 0 to 100% and because of the mask overlaying it, it will reveal itself in the shape of the purple outlined font.</p><p>Here are the 2 lines of code needed to get rolling:</p><p><em>TweenMax.set(chalk, { alpha: 1 })</em></p><p><em>TweenMax.staggerFromTo([‘#C_x5F_Path’, ‘#H_x5F_Path’, ‘#A_x5F_Path’, ‘#L_x5F_Path’, ‘#K_x5F_Path’], 0.4, { drawSVG: “0 ”}, { drawSVG: “100%” }, 0.4)}</em></p><p><strong>Codepen to play around with: </strong><a href="https://codepen.io/dev_cat/pen/WVagam"><strong>https://codepen.io/dev_cat/pen/WVagam</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74324e6d169b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selecting the image that your Facebook share button will share]]></title>
            <link>https://medium.com/@christinalaba/selecting-the-image-that-your-facebook-share-button-will-share-e2a5b856e567?source=rss-265c4dcdf186------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2a5b856e567</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[share]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Christina Laba]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 05:29:06 GMT</pubDate>
            <atom:updated>2018-02-14T05:29:06.393Z</atom:updated>
            <content:encoded><![CDATA[<p>I embedded the Facebook share button on my latest web project. I quickly realized that when this button is used it would, by default, share the first image on my page. My first image was pretty ‘meh’ and not a great representation of my page. Below is a step by step no how to select another image from your page, or if you wanted to do what I set out to do — select an image that is NOT visible on my site.</p><ol><li>Go to the Facebook debugger site and follow the instructions to see what your current share icon will default to sharing:</li></ol><p><a href="https://developers.facebook.com/tools/debug/">https://developers.facebook.com/tools/debug/</a></p><p>This is what my default share image, title and info were:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*Mp76vye9gGQyj5ZFK2fTzw.png" /></figure><p>They also show you other images on your site that you could potentially use. These were the images being used on my site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DwkRa8OUCay9DF0_." /></figure><p>2. Now head over to Open Graph Protocall — <a href="http://ogp.me/">http://ogp.me/</a>. In this documentation I found the meta tags needed to change various elements while sharing my site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*hXR7lJyfYJNepuHunmmr0A.png" /></figure><p>In my case I needed the last on this list: &lt;meta property=”og:image” content=”http://ia.media-imdb.com/images/rock.jpg&quot; /&gt;</p><p>3. I included this meta tag in the head of my index.html, don’t forget to replace the path with the path to the image that you want displayed. In my case I dropped in a new file to my images folder and changed the url to that image file name.</p><p>This is the image in my folder (not used anywhere else on my site): <a href="http://vapor-art.com/images/sample.png">http://vapor-art.com/images/sample.png</a></p><p>So my meta tag looked like this: &lt;meta property=”og:image” content=”http://vapor-art.com/images/sample.png&quot;/&gt;</p><p>4. Now if I refresh my Facebook debugging page I can see that my new shareable Facebook link looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*94AJ5nwdpHvYVcSM-M1PHA.png" /></figure><p>Boom, there you have it. Mush more of an eye catching image than my default share settings.</p><p>Head over to <a href="https://vapor-art.com/">https://vapor-art.com</a> to play around with this quick project I whipped up, while learning Javascript!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2a5b856e567" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is it taking ‘sew’ long for automation in the fashion industry?]]></title>
            <link>https://medium.com/@christinalaba/why-is-it-taking-sew-long-for-automation-in-the-fashion-industry-6dce2b75ccfb?source=rss-265c4dcdf186------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dce2b75ccfb</guid>
            <category><![CDATA[sewing-machine]]></category>
            <category><![CDATA[robots]]></category>
            <category><![CDATA[production]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[fashion]]></category>
            <dc:creator><![CDATA[Christina Laba]]></dc:creator>
            <pubDate>Mon, 22 Jan 2018 06:20:40 GMT</pubDate>
            <atom:updated>2018-01-22T06:20:40.217Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPkmRjtcXQpEEju1efgNWg.jpeg" /></figure><p>Ever wondered what the robot that made your shirt looked like? Well one thing I can tell you for sure, is that your clothing was made by human hands and not robots. More than likely the hands of workers from Eastern or southern asian, where the labour is cheap. A shocking 97% of all clothing purchased in the United States is imported. So why hasn’t this industry embraced technology and automated the sewing process so that we can move our manufacturing back to our own country?</p><p>I have worked in design and production for the past 7 years with <a href="http://www.ynotmade.com/">YNOT Made</a>, a local manufacturer here in Toronto, Canada. After sewing for 8 hours a day for many years, I can tell you that sewing is a labour intensive process. Unless you have sewn a garment yourself, it is hard to understand how complex the process is. From pattern drafting, to cutting, to sewing, all the way to finishing a garment with grommets, snaps, button holes or zippers. Shirts shouldn’t cost $10, we have been spoiled and now we can’t go back to paying the real price of clothing.</p><p>Back In 2012 the U.S. Defense Advanced Research Projects Agency (DARPA) pumped $1.25M into the research and development of a robotic sewing cell, in an attempt to automate the sewing process. What they ended up producing was a VERY expensive machine that relied on counting the threads of the fabric in order to program the machine to know when to start, stop and turn the fabric. This machine also used suction arms in order to lift and move the fabric. Very complex. VERY expensive.</p><p>As the DARPA research project found, garment creation is an industry that has proven impossible to automate. Human intuition and dexterity when it coming to manipulating fabrics is difficult to program efficiently for a variety of reasons:</p><p>1. The variables of fabrics are vast. Fabrics have different levels of stretch, thickness and weaves. Fabrics can crease, fabrics can fold and there is often imperfections and pulls that occur.</p><p>2. The garments being manufactured change frequently. Two words: Fast Fashion. H&amp;M and Forever21 both get DAILY shipments of new styles. With each new style, an automated sewing machine would need to be programed with a new set of rules.</p><p>3. The movements required to fabricate are complex. While sewing you are often pulling or easing the fabric. Pieces of fabric have to be lined up perfectly or panels won’t match, buttons and holes won’t align and even something as simple as a zipper won’t work</p><p>It surprising that the sewing machine has remain relatively unchanged since the Industrial revolution in the 1800’s, which was when the sewing machine was first invented. Remember your grandmas pedal powered beauty of a sewing machine? Well the only major difference between that and today’s industry standard sewing machine is that it is now powered by electricity. We have also developed machinery to aid in other parts of the production cycle of garments. At <a href="http://www.ynotmade.com/">YNOT Made</a>, we would cut all our fabric with a massive laser cutter. The industry standard for this part of the process is to cut the fabric in large stacks with a hand-operated saw. Other technological advances in the fashion industry include: automated sewing machines carrying out very simple tasks, robotic cutting, computerized knitting and 3D printing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*6WZLQSNCcBro4DZL_xY9LQ.jpeg" /><figcaption>Check out <a href="http://www.sewbo.com/">http://www.sewbo.com/</a> for more info</figcaption></figure><p>In the past, companies tried to create complicated mechanical devices to emulate the way a human sews, which as we discussed is a very difficult and complicated approach. Last year, Seattle software developer Jonathan Zornow took a different approach. He started, manipulating the materials to make them compatible with robots. His invention, the Sewbo, temporarily stiffens fabrics. This allows off-the-shelf industrial robots to easily build garments from rigid cloth, just as if they were working with sheet metal. The water-soluble stiffener is then removed at the end of the manufacturing process by rinsing in hot water. There are some limitations to this process. Since the material needs to be completely wet, certain fabrics such as wools or leather are out of the question.</p><p>It is unfortunate that in 2018 we are still heavily dependent on armies of human laborers. The garment industry employs a whopping 60–75 million people globally. These labourers are often working in the kind of conditions that led to the 2013 factory collapse that killed more than 1,000 workers in Bangladesh. I believe that automation will ultimately be good for the fashion industry because of how labour intensive this task is. That being said, I am also concerned about places like Bangladesh where the workforce is dependent on this kind of work. Millions of people, mostly women in poor countries, could lose their jobs. However, the fashion industry can no longer continue to chase the lowest labour costs as a sustainable model, this needs to change.</p><p>Here’s a great Planet money podcast on automation in the sewing industry: <a href="https://www.npr.org/sections/money/2016/08/03/488611449/episode-715-the-sewing-robot">https://www.npr.org/sections/money/2016/08/03/488611449/episode-715-the-sewing-robot</a></p><p>Photo by <a href="https://unsplash.com/photos/4l5fsRjJqLM?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">LAIS</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dce2b75ccfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>