<?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 Connor Holyday on Medium]]></title>
        <description><![CDATA[Stories by Connor Holyday on Medium]]></description>
        <link>https://medium.com/@ConnorHolyday?source=rss-336ce941c6d3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pa8wi3D6PFxWLhPwBKMMGQ.png</url>
            <title>Stories by Connor Holyday on Medium</title>
            <link>https://medium.com/@ConnorHolyday?source=rss-336ce941c6d3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:45:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ConnorHolyday/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[Enter the Intersection Observer]]></title>
            <link>https://medium.com/@ConnorHolyday/enter-the-intersection-observer-86bbf3e8d473?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/86bbf3e8d473</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Thu, 26 Oct 2017 14:40:42 GMT</pubDate>
            <atom:updated>2017-10-26T14:40:42.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jax1p2YsoztDduqx7oP8ZA.png" /></figure><p>Making their way onto the scene are some new JavaScript API’s known as Observers — and they’re awesome. This isn’t a technical write up, it’s intended to bring some awareness and hopefully make you say “oh that’s funky”.</p><p>The Intersection Observer API lets you keep watch on an element and triggers a function every time it crosses the edge of a set boundary. An example of this in action would be observing an image and then as it scrolls into view (or just before) you lazy-load it in.</p><p>You’d be right in thinking that we can already do this with scroll-listeners and all sorts of other methods, so what makes this special?</p><blockquote>It’s fast. Intensely fast.</blockquote><p>It tells you how much the element you’re observing has crossed the intersection in a range from 0 to 1. It also works horizontally, that means it’s reporting on both axes at the same time! How cool is that?!</p><p>I made the CodePen below to play around with it and it’s ridiculously easy to use. Experiment, have some fun, and as always be sure to check the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API">MDN</a> page for more detailed information.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FConnorHolyday%2Fembed%2Fpreview%2FwPwvRW%3Fheight%3D600%26slug-hash%3DwPwvRW%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2FConnorHolyday%2Fpen%2FwPwvRW&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F68398.wPwvRW.small.cdd79cc3-3017-4728-8645-939136625ffc.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/2725628eb33bcb87be52f581acdf05c3/href">https://medium.com/media/2725628eb33bcb87be52f581acdf05c3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86bbf3e8d473" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SVG & CSS Shape Morphing]]></title>
            <link>https://medium.com/@ConnorHolyday/svg-css-shape-morphing-ad6b974c0979?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad6b974c0979</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[svg]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Sat, 16 Sep 2017 16:13:07 GMT</pubDate>
            <atom:updated>2017-09-16T16:14:35.574Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve recently been working on a new edition of my website, some minor updates to give it more <a href="https://www.merriam-webster.com/dictionary/oomph"><em>oomph</em></a>. One thing I’ve tried to keep up with is having something fun that people can interact with.</p><p>At the moment I’ve got a background of tessellating triangles that all fade in with different colours (from a randomised selection) at different times — and each one disappears under your mouse! This means you can wipe the screen clean! My description does it no justice: <a href="http://holyday.me/">check it out yourself</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDCC21YZFVGBw8_QDZyoUQ.gif" /></figure><p>While I was figuring out what I wanted to build I was checking out <a href="https://medium.com/u/4ec13005b451">Rogie King</a>’s website and I fell in love with the subtle header animation he’s got going on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fc1Z3h1gyT5g3rICCWbLvw.gif" /><figcaption><a href="http://rog.ie/">http://rog.ie/</a></figcaption></figure><p>I thought I’d try to build something similar — or at least attempt to figure out the magic behind it because here’s the twist: it’s not using JavaScript!</p><p><strong>UPDATE: </strong>Here’s a better explanation I’ve found by <a href="https://medium.com/u/a789923b5cad">Chris Coyier</a> from an update to his article <a href="https://css-tricks.com/svg-shape-morphing-works/">here</a>:</p><blockquote>Chrome has started to allow shape morphing through CSS. <a href="http://codepen.io/chriscoyier/pen/NRwANp">Here’s a Pen</a> that demonstrates that. It’s even more limiting than SMIL though, being limited to the one browser and requiring a path with an identical number of points. Also not hardware accelerated, like all SVG.</blockquote><p>Long story short, it’s all run by using CSS to animate the d attribute of an inline SVG. It turns out that in Chrome at the moment you can use keyframes in CSS animations to change the co-ordinates in an SVG, super cool! A bit of a disclaimer though: for the best browser support at the moment it’s better to do this using JavaScript libraries like <a href="http://svgjs.com/">svg.js</a> or <a href="https://greensock.com/">GreenSock (GSAP)</a>. Here’s a CodePen I’ve spun together that shows what I managed to hack together:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FConnorHolyday%2Fembed%2Fpreview%2FvxZzdM%3Fheight%3D600%26amp%3Bslug-hash%3DvxZzdM%26amp%3Bdefault-tabs%3Dhtml%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2FConnorHolyday%2Fpen%2FvxZzdM&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F68398.vxZzdM.small.5014768f-d3a0-4138-a1ae-b07522a89a15.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/a986a5bc62e13e5a48a5928c13e3ca3c/href">https://medium.com/media/a986a5bc62e13e5a48a5928c13e3ca3c/href</a></iframe><p>To get this working I created a shape in Sketch and duplicated it twice to adjust the anchor points so that I had three variations — or three different states of the same shape. The most important thing to note here is that in order for this to work each shape <em>must</em> have the same number of points! If you can’t follow this rule or just can’t seem to get this to work; don’t worry because the JS libraries I mentioned will have your back.</p><p>While I didn’t end up using any of this for the website update it was a fun learning experience that’s led me down the path of SVG animation for projects I’ve had since.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad6b974c0979" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Margins, Line Heights, and Vertical Rhythms]]></title>
            <link>https://medium.com/@ConnorHolyday/margins-line-heights-and-vertical-rhythms-cda01db90c38?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/cda01db90c38</guid>
            <category><![CDATA[vertical-rhythm]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[typography]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Sat, 16 Sep 2017 15:39:52 GMT</pubDate>
            <atom:updated>2017-09-16T15:39:52.470Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently the whole team seems to have fallen victim to the <a href="https://builttoadapt.io/intro-to-the-8-point-grid-system-d2573cde8632">8pt Grid</a> as a method of keeping spacing consistent. For those that haven’t read into it — the idea is that all spacing is a multiple of 8, which is by default: half the root font size or .5rem.</p><p>This works beautifully in design but the real bugbear shows itself when you port it over to the code. The best example of this is a heading followed by a paragraph. Let’s say we’re using a H1 with a font-size of 50px and a line-height of 1.3. If we calculate this line-height to a pixel-value we get 65px, now that’s a 15px difference to the font-size, so what happens to it?</p><p>This extra space is distributed directly above and below the characters of your content itself. The purpose of this is so that when text spans multiple lines there is space between the words so they’re not stacked on-top of each other. The trouble with this is that we now have a rogue 15px of space to account for, and as this value is evenly distributed we’re actually only dealing with the bottom half of the extra space: 7.5px. So when we add a margin of 16px we end up having a complete space of 23.5px between the bottom of the text and the next element — throwing out our 8pt vertical rhythm.</p><p>In an attempt to make this easier I’ve created a small Sass function that removes the extra-space of the line-height from the value that you pass in:</p><pre>// calculates a value by adjusting for the line-height<br><a href="http://twitter.com/function">@function</a> line-height-adjust($distance, $line-height) {<br> <a href="http://twitter.com/return">@return</a> calc(#{$distance} — (((1em * #{$line-height}) — 1em) / 2));<br>}</pre><p>You could make this function more useful by adding default values but in this case I’ve left them blank. It works by first multiplying the line-height by 1em to figure out the actual value of the line-height for your element, we’re using em&#39;s to automatically get the current font size. Then it subtracts 1em so that what we have left is the extra space — this is then halved because we only need to account for the space on one side of the element. Finally, because we’re using em&#39;s and Sass doesn’t know how much 1em is, we need to return a calc() function for it to work properly in CSS.</p><blockquote><strong>tl;dr — use the calc function, add an em value to the end of the line-height, subtract 1, and halve it.</strong></blockquote><p>For example, if we wanted to add a bottom margin of 16px and the element had a line-height of 1.3, we would use: margin-bottom: line-height-adjust(16px, 1.3);. This would then show in the CSS as margin-bottom: calc(16px — .15em);.</p><p>I mean, I could just learn to use the method and type the CSS myself but by using this named function it reminds me or any future developers why there’s an odd calc function there in the first place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cda01db90c38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[display: grid;]]></title>
            <link>https://medium.com/@ConnorHolyday/display-grid-5029f6de6d13?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/5029f6de6d13</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[layout]]></category>
            <category><![CDATA[grid]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Wed, 25 Jan 2017 21:09:37 GMT</pubDate>
            <atom:updated>2017-01-25T21:09:37.629Z</atom:updated>
            <content:encoded><![CDATA[<p>Old IE is taking a back-seat thanks to todays ‘evergreen’ browsers. Hacking layouts with tables and floats are a thing of the past, and flexbox was never intended for full-page structure. (Just look at f<a href="https://github.com/philipwalton/flexbugs">lexbugs</a>)</p><p>There’s a new CSS Spec that’s set to revolutionise the way we build websites. From their overall layout — all the way down to the component level. It’s landing in March 2017 for all modern browsers so it’ll be around before you know it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOfXrTQ8FXumlm29P6ivNw.png" /><figcaption>Data from <a href="http://caniuse.com/#search=css%20grid">CanIUse</a></figcaption></figure><p>The current support in IE10, IE11, and Edge are referring to the old grid spec that will not be receiving any further updates. Although with Edge the new specification is currently labelled as “Under Consideration” and you can track it’s progress <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/status/gridupdate/?q=grid%20update">here</a>.</p><blockquote>But it’s so new! It’ll be buggy just like flexbox <em>😧</em></blockquote><p>CSS Grid has been in development for 5 years so it’s nothing new, you can place your trust in it. Although I would recommend using it with feature queries to progressively enhance your work. <a href="https://rachelandrew.co.uk/archives/2017/01/03/css-grid-is-coming/">Rachel Andrew</a> is an advocate that not everything has to look the same, and that browsers and devices can grow into your design.</p><blockquote>@supports ( display: grid ) {}</blockquote><h3>How it’s done</h3><p>There will be some new CSS to learn, but it’s okay! You can start small and make some pretty smart grid-work. The more complex stuff can be dived into once you’re feeling more comfortable.</p><p>This is your starting point, getting a grid: display: grid;</p><p>Onto the columns, here’s how you make two columns — each with a width of 100 pixels: grid-template-columns: 100px 100px;</p><p>Adding your gutters: grid-gap: 10px;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Lo_MgKYpVJcgKHKcrmH5w.png" /></figure><p>Okay that’s nice and easy, but the units don’t always have to be pixels. In fact they could be ems, rems, or percentages. You can even use a mixture — having each column using a different unit.</p><blockquote>But wait, there’s more… a new unit!</blockquote><p>The grid spec is introducing the fraction unit; it’s used to denote using a fraction of the available space. For those familiar with flexbox, 1 fraction unit is just like using flex: 1;</p><p>So now to make your pixel width columns more flexible, you can change it up to: grid-template-columns: 1fr 1fr;</p><p>Writing out these column widths can get boring fast — especially if they’re all the same width. Good thing there’s a new notation called repeat() 🎉</p><p>If we now want to increase to a four column width: grid-template-columns: repeat(4, 1fr);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AI6pBrtmJUuneBiwsJuPKQ.png" /></figure><p>Alternatively, if you wanted to specify a column width of 100 pixels but you’d like as many columns as possible; you can use the keyword auto-fill. This will instruct the grid to use as many 100 pixel columns as possible like so: grid-template-columns: repeat(auto-fill, 100px);</p><p>Without going into too much more detail, another function that you’ll likely find useful is minmax(). This allows you to specify a minimum width and a maximum width; which can be super useful at times.</p><h3>Some Intro Code on: Grid Placement</h3><p>Each grid item can be placed at a specified location on any row or column and there are many ways this can be done. Using grid-row-start: 1; and grid-row-end: 2; you instruct the grid-item to start at the beginning of the first row, and end at the start of the second row. You can do the same for columns, and the grid will automatically re-shuffle to accommodate your rules.</p><p>Or you can just use the shorthand: grid-row: 1 / 2;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntuZmWha2lJZNpQQVVJl9g.png" /></figure><p>There is an <em>even</em> <em>shorter</em> shorthand that simplifies down to ‘row start / column start / row end / column end’, this is: grid-area: 1 / 1 / 2 / 2;</p><p>If you don’t want to specify where the item ends — you can use the span keyword. This snippet would instruct an item to start at the beginning of the second row, and span two rows worth: grid-row: 2 / span 2;</p><h3>Some Fancy Code on: Grid Placement</h3><p>When creating your rows and columns you are able to give them each a name, but I won’t go into that in this blog post. Instead I’ll tell you about naming areas.</p><p>If in an example you used grid to layout a page, the grid container could be the wrapper and inside you’ll have: a header, an aside, the main content, and a footer. If you give each of these items a class, you can then name them as grid areas like so: grid-area: header;</p><p>This can then be used in your grid container to visually create a layout using: grid-template-areas: &quot;header header header&quot;; This would specify that the ‘header’ area should span 1 row and 3 columns. Each row is denoted by a pair of double quotes, and so creating a basic layout is as easy as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xd5bcZd8sHXugLysK1MsvA.png" /></figure><p>You might notice the empty space after the main content is denoted by using a period; this means no more fake empty columns or grid offsets! ✨</p><p>Although take note that if you were to add any further grid items — named or not — they will automatically fill in the gaps.</p><p>This way of defining your structure is so powerful, especially as all of the grid code can be flipped and re-structured by media queries! 🔥</p><h3>The Cool Bits</h3><p>Now that we’ve covered what grid is and how it can be used; I’ll leave you to explore how to use it in more detail by yourself. Instead, I’ll show you some cool examples to highlight where it can be used in your every-day projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g9Pg6X4zul3h1AcJPold4g.png" /><figcaption>FireFox Dev Tools</figcaption></figure><p>Good news for those of you that use FireFox! Currently out in the Developer Edition and Nightly — you can click on a small icon next to your display: grid; in order to visualise your grid. How cool is that?!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_KIjiFVGLldOL82MvaTfag.png" /><figcaption><a href="http://codepen.io/rachelandrew/pen/PNwaZe">Responsive Tables</a></figcaption></figure><p>This is an example of a table that uses display: grid; and media queries to easily provide a responsive solution. The code is both clean and elegant, whilst allowing you to use tabular data in your markup. Here’s a link to the <a href="http://codepen.io/rachelandrew/pen/PNwaZe">codepen</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-zq-kH6FPZNiVOv06n7QA.png" /></figure><p>This is an example of a complex grid layout that can be done using the <a href="http://susy.oddbird.net/">Susy</a> grid architecture. Here it’s being done using the native CSS Grid spec — showing just how powerful it can be! Here’s the codepen for the <a href="http://codepen.io/straybugs/pen/MKpgZd">Susy example</a>. While here’s the reference for the <a href="http://gridbyexample.com/examples/page-layout/#layout6">Grid example</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*5aQXltATyjeAcfc6eUqKgQ.png" /></figure><p>The grid items can also be affected by z-index, this opens up many opportunities for some cool structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Se-lIRf-hiyDq2s2z4soSg.png" /></figure><p>This example shows a specifically placed featured piece of content, with the rest of the cards automatically flowing around it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2wXaSMnl8640HMq0O2New.png" /></figure><p>A very common pattern is a featured header section of a page. Rachel Andrew yet again shows an elegant solution to <a href="http://gridbyexample.com/patterns/hero-image-panel/">building this responsively</a>.</p><h3>Signing Off</h3><p>There’s so much more you can do with grid, this is just an introduction to get you on your feet. For further reading I’d highly recommend the article by <a href="http://chris.house/">Chris House</a> over on CSS Tricks: <a href="https://css-tricks.com/snippets/css/complete-guide-grid/">A Complete Guide to Grid</a>, and anything by <a href="https://medium.com/u/be9c04b39015">Rachel Andrew</a>, especially her <a href="http://gridbyexample.com/">Grid by Example</a>.</p><p>For those more interested in general CSS Layout and the design associated with it: definitely check out <a href="https://medium.com/u/48b8ec1f90eb">Stacy Kvernmo</a> and her talk “<a href="http://www.slideshare.net/Funstacy/the-great-state-of-design-with-css-grid-layout-and-friends">The Great State of Design</a>” from <a href="http://cssday.io/">CSSDAY.io</a></p><p>If you’ve made it this far then thanks for reading, and if you have any questions then feel free to leave a comment or send me a <a href="https://twitter.com/ConnorHolyday">tweet</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5029f6de6d13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sass Media Query mixin — Spring Cleaning]]></title>
            <link>https://medium.com/@ConnorHolyday/sass-media-query-mixin-spring-cleaning-28659f93c1cb?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/28659f93c1cb</guid>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Wed, 04 Jan 2017 17:31:02 GMT</pubDate>
            <atom:updated>2017-01-04T17:31:02.041Z</atom:updated>
            <content:encoded><![CDATA[<p>As I’m sure you can relate, over time you seem to collect snippets of code that are <em>supposed</em> to make your life easier. Every now and then however a new feature might ship (come on CSS Grids!) or some browser support is no longer relevant. As such some of these snippets deserve to be dusted off and given a fresh coat of paint.</p><p>One that I use <strong>all the time </strong>is the <a href="http://alwaystwisted.com/articles/updating-my-sass-media-query-mixin">Media Query mixin</a> for Sass by the ever so talented Mr <a href="https://medium.com/u/7eb44cc09178">Stuart Robson</a> 🔥</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*beS8a93KnTw6c9IRSS_BwA.png" /><figcaption><a href="http://caniuse.com/#feat=css-mediaqueries">Data from Can I Use</a></figcaption></figure><p>Recently our needs have changed, and we no longer need to support browsers that in-turn don’t support media queries. This means we can drop the “less than IE9” section of the mixin.</p><pre>@mixin mq($value, $feature: &#39;min-width&#39;) {</pre><p>The arguments have also been renamed: the first argument is now simply $value as it could relate to a numerical value, or something else like a device orientation. The second argument is now called $feature and it has a default value of ‘min-width’ because we like to build from the feet up (mobile first). This value can easily be overwritten to ‘max-width’ or even something like ‘orientation’.</p><pre>@if map-has-key($breakpoints, $value) {<br>  $value: map-get($breakpoints, $value);<br>}</pre><p>The first section of the mixin involves a check against our global breakpoints map, we use this to keep a standard set of breakpoints. For the fine-tuning of components we can instead pass in a numerical value.</p><pre>@if type-of($value) == &#39;number&#39; {<br>  $value: $value + px;<br>}</pre><p>The second section is a check to see if the supplied value is a number; if this is true then it uses a default pixel unit. In any instance that we’d like to use something other than pixels we can supply that unit with the value itself — thereby failing this condition.</p><pre>// $value: can be a number, &#39;landscape&#39;, or a breakpoint letter<br>// $feature: default is min-width,<br>// can be overwritten with &#39;max-width&#39;, or &#39;orientation&#39; etc.</pre><pre>@mixin mq($value, $feature: &#39;min-width&#39;) {</pre><pre>  @if map-has-key($breakpoints, $value) {<br>    $value: map-get($breakpoints, $value);<br>  }</pre><pre>  @if type-of($value) == &#39;number&#39; {<br>    $value: $value + px;<br>  }</pre><pre>  @media screen and (#{$feature}: $value) {<br>    @content;<br>  }</pre><pre>}</pre><p>And there you have it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28659f93c1cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What if I don’t like the process of making things?]]></title>
            <link>https://medium.com/@ConnorHolyday/what-if-i-dont-like-the-process-of-making-things-e4182aeecb1a?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4182aeecb1a</guid>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[processing]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Wed, 12 Oct 2016 11:55:32 GMT</pubDate>
            <atom:updated>2016-10-12T22:19:42.385Z</atom:updated>
            <content:encoded><![CDATA[<p>At every conference I’ve been to there has always been one person who’s core message is to make something every day. As somebody who’s in the creative industry, making things is not only my job — but my hobby.</p><p>The main problem I’ve found is that I don’t always want to make something using the same tools that I use day-in day-out. All of these shiny new tools and frameworks also take time to learn and setup — just to be able to spin up a simple side-project.</p><p>So unless I’m super motivated; then I find myself with an evening free and absolutely no will-power to do anything that requires coding. I just really don’t want to touch HTML or CSS.</p><p>After attending Reasons conference in Brighton, and WDC2016 in Bristol, a handful of people have highlighted a program called <a href="http://processing.org/">Processing</a>. Processing is a standalone program (with a <a href="https://p5js.org/">JavaScript</a> port) that is super quick to just spring open and sketch through coding. The default language is Java, although that can be switched out to a number of alternatives if you’re not comfortable with it.</p><p>Truly though, Processing is <em>fast, </em>and it doesn’t matter how experienced you are as a developer. The more you use it: the more complex the programs you’ll be able to bring to life. Even as a beginner I’m able to draw things with code and solve problems in a neat little sandbox.</p><p>All of the code can then be saved or trashed with absolutely zero hassle. The entire environment is setup and working by just opening the program. It’s a lovely change to setting up a directory structure, followed by dealing with Atom/Chrome/NPM/Webpack for however long before I can get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dqpw0OzDgfQFcNCsEfh1uA.png" /></figure><p>The co-founder of Etsy, Jared Tarbell, uses Processing for generative art; which can be seen on his website <a href="http://www.complexification.net/gallery/">complexification</a>. All of his works come with their source-code if you wanted to try it yourself or explore what he’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zM4kf7rU-FzIklQDv8KX5A.png" /></figure><p><a href="https://vimeo.com/joshuadavis">Joshua Davis</a> uses Processing coupled with audio-input and Open Frameworks to create some awesome music videos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGTSB6QqcKcYhSS9ElwBZg.png" /></figure><p><a href="https://github.com/beneverard/UK-Towns-Visualisation">Ben Everard</a> is a Co-founder at <a href="http://theideabureau.co/">The Idea Bureau</a> and he can be found using co-ordinates of towns to plot out a map of the UK to a stunning effect.</p><p>So if you find yourself with five minutes spare and not knowing what to do, why don’t you give Processing a try?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4182aeecb1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exposing Library Variables With Webpack]]></title>
            <link>https://medium.com/@ConnorHolyday/exposing-library-variables-with-webpack-49a3ba804121?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/49a3ba804121</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Sun, 02 Oct 2016 21:22:36 GMT</pubDate>
            <atom:updated>2017-03-18T10:45:43.658Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>[UPDATE: This is pre Webpack 2, it might be handled differently now]</strong></p><p>The other day I was using the Google Maps API for some custom map work; and in order for that to work you are supplied a simple script tag to call it in with a callback that fires when it’s loaded.</p><p>This is where I ran into problems with Webpack.</p><p>By nature, Webpack is a module bundler, and as such it wraps up all of your assets — serving it up with a nice little bow 🎀. A side-effect of this is that none your functions or variables can be accessed in the global scope. As such the Google Maps callback can’t find my initMap() function…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*kmkZZ4w6coyMDGbL6A30fw.png" /></figure><p>Okay so I may have spent far too long trawling Google but I have found the pot of gold at the end of the rainbow. Here’s how to get this all sorted:</p><p>You can use exports. There are a hundred different ways to do this but my preference is to use the ES6 syntax as best explained in this <a href="https://developer.mozilla.org/en/docs/web/javascript/reference/statements/export">MDN article</a>. However this alone doesn’t expose your functionality, it just makes it known to Webpack. In order to finish this procedure you need to make a small tweak to your Webpack config.</p><p><a href="https://webpack.github.io/docs/library-and-externals.html">This section</a> of the Webpack documentation explains that you need to name your library, and specify the method you are using for exports. Seeing as I’m using ES6 I can leave out LibraryTarget as it expects this method by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*kea32VxmUZmgNZshTz8Jqw.png" /></figure><p>Now that this is done, the function I exported can be accessed by calling it via `app.initMap`.</p><p>Great, right?! This is where everything broke.</p><p>So here’s a little gotcha that I discovered: it turns out that Webpack only exports items from the <strong><em>last </em></strong>entry point <a href="https://webpack.github.io/docs/configuration.html#entry">in your config</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fc3IH6u42DEI1y%2Ftwitter%2Fiframe&amp;src_secure=1&amp;url=http%3A%2F%2Fgiphy.com%2Fgifs%2Fdoctor-who-c3IH6u42DEI1y&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fc3IH6u42DEI1y%2F200.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/28db8ed533bb1347941663435572e311/href">https://medium.com/media/28db8ed533bb1347941663435572e311/href</a></iframe><p>Simple solution though, I’ve got a main index file that pulls in all of the functionality of my app and exports it accordingly. Luckily my project is only a small build so I don’t have any major problems with this. The <strong><em>real</em></strong> solution would be to use <a href="https://webpack.github.io/docs/code-splitting.html">code-splitting</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49a3ba804121" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reasons Conf]]></title>
            <link>https://medium.com/@ConnorHolyday/reasons-conf-65b8a64efd77?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b8a64efd77</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[reason]]></category>
            <category><![CDATA[brighton]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Sun, 25 Sep 2016 23:04:36 GMT</pubDate>
            <atom:updated>2016-09-26T13:04:10.821Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*BwkvkFw94ZtYJxw13kJrdQ.png" /></figure><p>In the first week of September this year (2016) the wonderful directors at <a href="http://theideabureau.co/">The Idea Bureau</a> decided to treat the company to an outing at the <a href="https://reasons.to/">Reasons To</a> conference in Brighton.</p><p>The whole affair stretched over a total three day-sessions and two evening talks (both followed by a £1 bar!). Unlike any of the other conferences I’ve been to, Reasons had multiple venues, giving you the choice of three different speakers each morning. Although after lunch it was purely single-track — in the main theatre — which was perfect because nobody wants to make decisions after lunch.</p><p>Rather than following my initial idea with an extensive blog post; I need to remember that blogging isn’t like writing an assignment. Only a handful of (awesome) people are probably going to read this, so I’ll try to make my blogs short and sweet 🍫</p><p>Here are just a couple of the inspirational speakers that have stayed in my brain since the event:</p><p><a href="http://nellyben.com/">Nelly Ben Hayoun</a>, <a href="http://lab.io/">Adam Butler</a></p><p>The talks by Nelly and Adam both had similar messages at their core. The idea behind it all is just to get out there and actually do the things you’re interested in. Take a page from Nike’s book and Just Do It. It doesn’t always have to be a success, but having something out there, even half-perfect, is an entire world ahead of having nothing out there at all.</p><p><a href="http://www.levitated.net/">Jared Tarbell</a></p><p>Jared’s talk revolved around creating generative art — the making of something special and unique, following the laws of mathematics. He showed how you can draw wonder out of something that may seem simple at first, but ends up growing into something much bigger than itself.</p><p><a href="http://www.seblester.com/">Seb Lester</a></p><p>The work Seb does involves lettering and calligraphy. After staring at far too many pages using Open Sans this has reminded me that type can be beautiful too. (And a couple of us may have taken up some calligraphy of our own)</p><p><a href="http://www.joshuadavis.com/">Joshua Davis</a></p><p>The keyword here is “wayfinding”. Joshua’s talk started with an idea, throughout the duration of his talk he showed everyone the journey he took from idea to idea, and how the destination wasn’t planned at all. Since then I’ve definitely been experimenting with little projects and focussing on what I can do to then evolve them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jPSdSyuCnFpSHSNpNkRZzQ.jpeg" /><figcaption><a href="https://www.instagram.com/p/BKgFmMnBoKK/">Calligraphy by Tash</a></figcaption></figure><p>It might be a bit cliché but everyone is always super inspired after a conference, and the core message always seems to remain the same.</p><p>Don’t sweat the small stuff.</p><p>Be proud of what you do.</p><p>And keep moving forwards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b8a64efd77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello World]]></title>
            <link>https://medium.com/@ConnorHolyday/hello-world-7cc1b61e22?source=rss-336ce941c6d3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cc1b61e22</guid>
            <category><![CDATA[hello-world]]></category>
            <dc:creator><![CDATA[Connor Holyday]]></dc:creator>
            <pubDate>Tue, 20 Sep 2016 07:05:16 GMT</pubDate>
            <atom:updated>2016-09-20T14:25:47.655Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve recently been doing some side-projects in my free-time that end up with some sort of small finished thing. Rather than just sticking these up as a repo on <a href="https://github.com/ConnorHolyday">GitHub</a>, I ended up wanting to show some people what I’ve done.</p><p>That — and having the freedom to throw things onto the internet — has convinced me to re-name and re-open my personal website; all under the new name of <a href="http://holyday.me/">holyday.me</a></p><p>Ready. Set. Go! 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cc1b61e22" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>