<?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 Ibrahim Butt on Medium]]></title>
        <description><![CDATA[Stories by Ibrahim Butt on Medium]]></description>
        <link>https://medium.com/@ibrahimbutt?source=rss-580f24b2b38f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L_oQhOVpJJ5ciPsqUhjMpQ.jpeg</url>
            <title>Stories by Ibrahim Butt on Medium</title>
            <link>https://medium.com/@ibrahimbutt?source=rss-580f24b2b38f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 06:33:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ibrahimbutt/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[How to Give Credit in Git Commits]]></title>
            <link>https://faun.pub/how-to-give-credit-in-git-commits-ccd6485678c3?source=rss-580f24b2b38f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccd6485678c3</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Ibrahim Butt]]></dc:creator>
            <pubDate>Sun, 23 Dec 2018 19:24:37 GMT</pubDate>
            <atom:updated>2021-01-16T01:17:26.807Z</atom:updated>
            <content:encoded><![CDATA[<h4>Add Co-Authors to Git Commits</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OBAo7WBOCGDAXARH" /><figcaption>Photo by <a href="https://unsplash.com/@rawpixel?utm_source=medium&amp;utm_medium=referral">rawpixel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Have you ever worked on code with someone else? If you have, you’ll know only the person who makes the commit gets credit. Adding a co-author fixes this and I’ll show you how to do it.</strong></p><p>I’ve been pair programming as part of the pre-course at Makers Academy. I use Live Share on VSCode to pair remotely and wanted to make sure my partner gets credit. The only requirement I had in mind is for it to not be a hassle. Adding a co-author to commits works perfectly.</p><h3>Where is the credit given?</h3><h4>Contribution Graph</h4><p>When adding co-authors, the commit gets added to their contribution graph:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnacmK9QMtM6ZVkA9_DBMQ.png" /><figcaption>An example of a GitHub contribution graph.</figcaption></figure><h4>Git Log</h4><p>When you git log:</p><pre>commit 975c54aa874e93bd8ce8220bab724df36010d606 (HEAD -&gt; master, origin/master)<br>Author: Ibrahim Butt &lt;EMAIL_ADDRESS&gt;<br>Date:   Fri Dec 21 19:11:57 2018 +0000<br><br>    Complete longest subsequent challenge<br><br>    Co-authored-by: Nkhil &lt;EMAIL_ADDRESS&gt;</pre><h4>GitHub Repository</h4><p>On the projects repository:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHWH7jogEwZe1o912YZVhA.png" /><figcaption>An example of how co-authors are given credit on a repositories commit history.</figcaption></figure><h3>Great, how do I add co-authors?</h3><p>Firstly, you’ll need the username and email of the co-author(s).</p><p>When you’re ready to make a commit, type in the commit message but don’t add the closing quotation mark. Instead, press enter three times. Your terminal will look like this:</p><pre>git commit -m &quot;A commit message<br>&gt;<br>&gt;<br>&gt;</pre><p>Once you’ve done this, add the co authors. Then add the closing quotation mark and press enter:</p><pre>git commit -m &quot;A commit message<br>&gt;<br>&gt;<br>&gt;Co-authored-by: name &lt;name@example.com&gt;<br>&gt;Co-authored-by: another_name &lt;another_name@example.com&gt;</pre><p><strong>Note:</strong> <em>You must include the greater and less than symbols around the email for this to work.</em></p><p>If a co-author prefers to keep his or her email private, you can add their GitHub no-reply email instead. You can find your own no-reply by going into your email settings on GitHub.</p><p>You can add co-authors on commits made using the GitHub desktop app or online by adding the co-author details in the extended description text-area:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lVLcJpwTx2ED4_oeRL6NQ.png" /><figcaption>An example of how to add co-authors on GitHub.</figcaption></figure><h3>Conclusion</h3><p>That’s all there is to it.</p><p>Do you have any git tips? Leave a comment below.</p><h4>If you found this helpful, follow me on <a href="https://twitter.com/madebyibrahim">Twitter</a> and <a href="https://www.instagram.com/madebyibrahim/">Instagram</a> to be notified of future posts, and don’t forget to clap!</h4><h4>Do you pair programme? You may find this helpful:</h4><p><a href="https://medium.com/@ibrahimbutt/how-to-set-up-vscode-for-remote-pair-programming-e5f5c30a48e2">How to Set Up VSCode for Remote Pair Programming</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Piks8Tu6xUYpF4DU" /></figure><p><strong>Join our community Slack and read our weekly Faun topics ⬇</strong></p><figure><a href="https://www.faun.dev/join/?utm_source=medium.com%2Ffaun&amp;utm_medium=medium&amp;utm_campaign=faunmediumbanner"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oSdFkACJxs5iy1oR" /></a></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccd6485678c3" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/how-to-give-credit-in-git-commits-ccd6485678c3">How to Give Credit in Git Commits</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up VSCode for Remote Pair Programming]]></title>
            <link>https://ibrahimbutt.medium.com/how-to-set-up-vscode-for-remote-pair-programming-e5f5c30a48e2?source=rss-580f24b2b38f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5f5c30a48e2</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[makersacademy]]></category>
            <dc:creator><![CDATA[Ibrahim Butt]]></dc:creator>
            <pubDate>Sun, 23 Dec 2018 17:49:27 GMT</pubDate>
            <atom:updated>2021-01-16T01:16:11.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S_zP1VhN7zGB21jW" /><figcaption>Photo by <a href="https://unsplash.com/@kevnbhagat?utm_source=medium&amp;utm_medium=referral">Kevin Bhagat</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>In this post, I’ll show you what you need to set up Visual Studio Code for remote pair programming. The goal is to not use any other app such as Slack or FaceTime for calls and messaging. The major benefits to the setup are no app switching and less RAM getting used. And if you have an Apple laptop, it won’t sound like it’s about to take off.</strong></p><h3>The Problem</h3><p>As part of the Makers Academy pre-course which is remote, you’re required to pair programme. Since I’m not in London yet, I couldn’t meet any of my cohort members. Thus, I had to figure out how to make remote pair programming work for me.</p><p>Not everyone has WhatsApp, Skype, or FaceTime. Or a computer with enough RAM to keep many apps open together. But most of them are using VSCode. Using this setup has made pairing a smoother experience. When I pair with someone new, there isn’t an initial period of getting on the same page on how we’re going to make it work. Besides this, my fingers don’t feel toasty after an hour of pairing. Especially when using an external monitor.</p><h3>The Solution</h3><p>I’m all for simplicity and decided there must be a better way to pair using VSCode. I can’t be the only one who faced these issues. After some research and experiments, I found the these extensions to be the solution:</p><h4>Live Share</h4><p>Microsoft created a great collaborative coding extension called <a href="https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare">Live Share</a>. It’s necessary to remote pair while using VSCode. Using Live Share, you can work on the same project or file with a bunch of useful features:</p><ol><li>Live Editing</li><li>Focus and Follow</li><li>Group Debugging</li><li>Shared Terminal</li></ol><p>The features speak for themselves, so there’s no need to get into it. But if you want to learn more, you can <a href="https://visualstudio.microsoft.com/services/live-share/">here</a>.</p><p>One thing I like is when you’re the guest, i.e. joining a live share session, you don’t need to clone and setup projects. Perfect for when you ask/are asked for help.</p><h4>Live Share Audio</h4><p><a href="https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare-audio">Live Share Audio</a> allows you to call anyone in the Live Share session as long as they have both extensions. It’s also made by Microsoft. From my experience, it works well and the call quality has been good.</p><p>Using Live Share Audio, you no longer need to keep open Skype, Slack, FaceTime or any other app you use for calls.</p><h4>Team Chat</h4><p>Audio chat is great, but you may need a chat system too.</p><p><a href="https://marketplace.visualstudio.com/items?itemName=karigari.chat">Team Chat</a> adds a messaging system to VSCode. You can connect it with Slack, Discord and Live Share.</p><p>The main features of it are:</p><ul><li>Quiet notifications: System notifications for a chat can be painful, and this extension implements a subtle unread count instead.</li><li>Rich formatting: Support for markdown code snippets, emojis, message reactions, and threads.</li><li>Native look-and-feel: Use your dark theme and grid editor layout preferences with chat.</li></ul><p>When connecting to Slack or Discord, you can use it even when you’re not programming. Which is great for keeping an eye on a discussion while you’re working.</p><h3>Conclusion</h3><p>You can have a complete pair programming setup, using Live Share, Live Share Audio and Team Chat.</p><p>You can get all these extensions together by installing the <a href="https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare-pack">VS Live Share Extension Pack</a>.</p><h4><strong><em>If you found this helpful, follow me on </em></strong><a href="https://twitter.com/madebyibrahim"><strong><em>Twitter</em></strong></a><strong><em> and </em></strong><a href="https://www.instagram.com/madebyibrahim/"><strong><em>Instagram</em></strong></a><strong><em> to be notified of future posts, and don’t forget to clap!</em></strong></h4><h4><em>You may find this helpful:</em></h4><p><a href="https://medium.com/@ibrahimbutt/how-to-give-credit-in-git-commits-ccd6485678c3">How to Give Credit in Git Commits</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5f5c30a48e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Makers Academy Pre-Course and Why It’s Awesome]]></title>
            <link>https://ibrahimbutt.medium.com/the-makers-academy-pre-course-and-why-its-awesome-2655b1a016c7?source=rss-580f24b2b38f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2655b1a016c7</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[makersacademy]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[makers-students]]></category>
            <dc:creator><![CDATA[Ibrahim Butt]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 22:00:35 GMT</pubDate>
            <atom:updated>2021-01-16T01:18:29.609Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Best Developer Factory In The World</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CpGEuB8pLH1s_57k" /><figcaption>Photo by <a href="https://unsplash.com/@dsmacinnes?utm_source=medium&amp;utm_medium=referral">Danielle MacInnes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Excited for what the future holds, on the 26th of November I began my journey at Makers Academy. Here are my thoughts on the four-week pre-course.</strong></p><h3>The Learning Experience</h3><p>I had been self-learning for seventeen months before the pre-course. Which explains how I finished it before 9 AM on the sixth day. Despite the head start, I still learnt many things.</p><h4>The Command Line</h4><p>The first thing you learn is how to hold your own in the command line. Makers call it the basics. But for someone who likes living in the terminal (yes I use Vim why do you ask?), I still learnt something:</p><ol><li>grep</li><li>cat</li><li>find</li><li>tail</li><li>head</li><li>|</li></ol><p>Since learning these commands, I’ve already used them outside of the pre-course. For example, you created a local repository and installed a package. Now you have the black hole of ./node_modules. The next step would be to go into your text-editor or open Vim to create a .gitignore. Or you could do this on the spot:</p><pre>echo “node_modules” &gt; .gitignore <br># use &gt;&gt; if you want to append to a file</pre><p>You need to see the contents of a file? Use cat, or less which helps with longer files. This way you’ll not need to open your text editor or Google how to leave Vim.</p><p>The above example is small. But it’s a quicker and better experience than opening Finder or a text-editor to scan a file. Even better used alongside head and tail to view a range of lines.</p><p>The .gitignore example is a smaller example. But small time savings throughout the day sum to big efficiency gains. Not to forget, you will use less mental energy, leaving more for the important tasks.</p><p>Besides, if you love the craft, you’ll enjoy learning and using these small gains in efficiency.</p><blockquote>“You must understand the following: In order to master a field, you must love the subject and feel a profound connection to it. Your interest must transcend the field itself and border on the religious.” — Robert Greene</blockquote><p>The commands I listed are helpful, a few even powerful. But I don’t want to turn this article into a mini tutorial of everything I’ve learnt. If you want to learn about them, use man or Google-fu. Or join Makers.</p><h4>Abstraction and Course Material Quality</h4><p>I formally learnt abstraction from Clean Code, two weeks before starting Makers. My programming experience made it easy to understand why it’s important. I’ve been using abstraction before reading Clean Code. But since reading Clean Code and the pre-course, I actively look for abstraction opportunities. I.e. it has made me a better developer knowing it’s a best practice and not simply something my intuition led me to.</p><p>I’ve completed many online courses. Even Harvard’s CS50 on edX didn’t teach me abstraction. At Makers, you’re familiarised with abstraction in the third week and it’s emphasised in week four.</p><p>I’m impressed with this and see it as a testament to their ability to make you a professional developer in 16 weeks. You could say “that’s one thing, Ibrahim!”. But there is quality throughout the pre-course materials.</p><p>The pre-course material is well written and easy to read. There was a lot of reading, but it never felt like a drag or that nothing was sinking in. No chapter is long-winded and examples are easy to understand. The focus is on fundamental concepts, rather than memorising Ruby syntax or methods.</p><h3>The Culture</h3><p>At the time of writing, the second working week has come to an end and I’ve already made a few friends.</p><p>The focus on seeking help from your cohort creates an environment that values kindness. It also creates a culture of giving back by helping others, which brings people together. Besides this, it gets the conversations flowing and is a great way to break the ice before the onsite starts. Especially the pair programming, which is a lot of fun!</p><h3>Conclusion</h3><p>I feel very lucky to be a student at Makers. I have a passion for the craft and I’m now certain Makers will give me the tools to hit the ground running towards my goals as a developer. And above all else, that is why Makers exists.</p><h4>If you found this helpful, follow me on <a href="https://twitter.com/madebyibrahim">Twitter</a> and <a href="https://www.instagram.com/madebyibrahim/">Instagram</a> to be notified of future posts, and don’t forget to clap!</h4><ul><li><a href="https://medium.com/@ibrahimbutt/if-youve-ever-configured-webpack-parcel-will-blow-your-mind-b615468cee78">If you’ve ever configured Webpack, Parcel will blow your mind!</a></li><li><a href="https://medium.com/@ibrahimbutt/pure-html-css-slider-using-checked-80dffb05afe9">How to make a pure HTML &amp; CSS slider using `:checked`!</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2655b1a016c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If you’ve ever configured Webpack, Parcel will blow your mind!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://ibrahimbutt.medium.com/if-youve-ever-configured-webpack-parcel-will-blow-your-mind-b615468cee78?source=rss-580f24b2b38f------2"><img src="https://cdn-images-1.medium.com/max/1920/1*Nubb8PFT2fttcXpAOm2d7w.png" width="1920"></a></p><p class="medium-feed-snippet">And how to hit the ground running with Parcel.</p><p class="medium-feed-link"><a href="https://ibrahimbutt.medium.com/if-youve-ever-configured-webpack-parcel-will-blow-your-mind-b615468cee78?source=rss-580f24b2b38f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://ibrahimbutt.medium.com/if-youve-ever-configured-webpack-parcel-will-blow-your-mind-b615468cee78?source=rss-580f24b2b38f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b615468cee78</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ibrahim Butt]]></dc:creator>
            <pubDate>Fri, 16 Mar 2018 17:09:23 GMT</pubDate>
            <atom:updated>2020-11-21T00:14:31.963Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to make a pure HTML & CSS slider using `:checked`!]]></title>
            <link>https://ibrahimbutt.medium.com/pure-html-css-slider-using-checked-80dffb05afe9?source=rss-580f24b2b38f------2</link>
            <guid isPermaLink="false">https://medium.com/p/80dffb05afe9</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ibrahim Butt]]></dc:creator>
            <pubDate>Sat, 30 Dec 2017 15:19:29 GMT</pubDate>
            <atom:updated>2021-01-16T01:19:24.850Z</atom:updated>
            <content:encoded><![CDATA[<h4>It Just Works</h4><p>On my journey to becoming a Full Stack Web Developer, I’ve begun cloning the Plasso homepage as my first real project. Despite thinking the slider is “kiddy stuff”, I posted a story on Instagram showing it. Mentioning I used nothing but HTML and CSS, a handful of people asked how they could do it too. That’s when I realised, it may seem like a novice task but a lot of people can still benefit from reading the code, and beginners could benefit from a walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwSn7zQUXX4eEa1N4U0XyA.png" /><figcaption>See it in action <a href="https://codepen.io/ibrahimbutt/pen/goWxJX">here</a>.</figcaption></figure><h3>Lets Get Started</h3><p>Firstly, to keep things organised and semantic, everything related to the slider is contained in section.slider on line 1. It contains the backgrounds, slides and paginations.</p><h4>Backgrounds Markup</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf1137da9f798cb141f3a74182a482e1/href">https://medium.com/media/bf1137da9f798cb141f3a74182a482e1/href</a></iframe><p>You can’t use transition on a background that contains a gradient. For example, this won&#39;t work:</p><pre>.a-div<br>    background: linear-gradient(red, blue 50%)</pre><pre>.a-div:hover<br>    background: linear-gradient(blue, red 50%)</pre><p>However, this will:</p><pre>.a-div<br>    background-color: blue</pre><pre>.a-div:hover<br>    background-color: red</pre><p>For that reason, we need a background for each slider. This could’ve been approached in three ways:</p><ol><li>Use linear-gradient() to create a solid block of color, a gradient, another solid block of color, then skewY().</li><li>Make two backgrounds for each slide, one with the solid block of color, another with the gradient. Apply skewY() to both.</li><li>Same as number two, but instead of using skewY(), use polygon().</li></ol><p>For all three solutions, we need to apply a fade out transition on opacity, while applying a fade in transition to the incoming slides background. This has the added benefit of improving performance by avoiding the <a href="https://developers.google.com/web/fundamentals/performance/rendering/">paint process</a>.</p><p>Solution one below creates jagged edges, for which I couldn’t find a solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVg8uUifLRldTh2k5Y8g_A.png" /><figcaption>Nope.</figcaption></figure><p>We’re left with solutions two and three. I went with solution three based on my own preference.</p><h4>Background Styling</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c052ed5e83d6b087225d352dcd4f4fbd/href">https://medium.com/media/c052ed5e83d6b087225d352dcd4f4fbd/href</a></iframe><p>We want all the .slider__backgrounds classes to be positioned the same. If we were to not position .slider, we&#39;d need to relative position all .slider__background divs and then use top: -100% for the second .slider__backgrounds, then top: -200% for the next and so on. Using absolute avoids all those extra lines of code and places the backgrounds exactly where we need them using a single line of code.</p><p>Since all the divs are empty (in terms of HTML elements) and all the .slider__background divs will remain empty, a height and width is added to give them some life.</p><p>To get the required shape for .slider__backgrounds__bottom and .slider__backgrounds__top, polygon() from solution three is used.</p><p>The modifier classes for .backgrounds__slider__bottom and .backgrounds__slider__top come in handy for easily applying the different backgrounds, as well making it easy to read and understand the CSS.</p><h4>Slides Markup and Layout</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7fc1822e6a076d9e5bd56c191c5e3a1e/href">https://medium.com/media/7fc1822e6a076d9e5bd56c191c5e3a1e/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24e117e16eab5c6051cb090ac6ccf7cb/href">https://medium.com/media/24e117e16eab5c6051cb090ac6ccf7cb/href</a></iframe><p>As all the divs above .slider__slides are absolute positioned, it is positioned exactly where we need it to be. This is because the aforementioned divs are taken out of the normal flow.</p><p>Using display: grid, the basic structure of each slide is complete in two lines. This causes an overflow as .slider__slides now has a layout of three columns that are 300% wide combined. If you apply overflow: hidden to .slider__slides, it solves the problem, almost. There won’t be an overflow, but the drop shadow on the .slider__slides_slide will be cut off on the top. The solution to this was to add overflow: hidden to the parent div of .slider__slides, which in this case is body.</p><p>I usedwill-change to aid in smoother framerates.</p><blockquote>The <strong>will-change</strong> CSS property provides a way for authors to hint browsers about the kind of changes to be expected on an element, so that the browser can set up appropriate optimizations ahead of time before the element is actually changed. These kind of optimizations can increase the responsiveness of a page by doing potentially expensive work ahead of time before they are actually required. — MDN</blockquote><h3>Making It All Work</h3><h4>Pagination, Labels and Inputs</h4><p>This is the moment you’ve been waiting for. So how does it actually slide on a click?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe9e653f635525af4e42ce200ec3744e/href">https://medium.com/media/fe9e653f635525af4e42ce200ec3744e/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c15ef067d09ea3d2e23c5d9d01f2abe/href">https://medium.com/media/5c15ef067d09ea3d2e23c5d9d01f2abe/href</a></iframe><p>The pagination sections are actually labels, which are linked to radio inputs. Therefore, when you click on a label, the corresponding radio input is selected, deselecting the others. This avoids writing JavaScript logic to see what slide is currently active, removing the ‘activation’ class, then seeing which slide the user chose and ‘activating’ it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7ccee1ab3004eff93d2b5e0d9c7a813/href">https://medium.com/media/c7ccee1ab3004eff93d2b5e0d9c7a813/href</a></iframe><p>Using :checked is the other half. We’re all familiar with :hover, it’s the same concept. When the condition is true, the CSS is applied. However, there’s one caveat. You need to use a <strong>general</strong>, <strong>child</strong> or <strong>adjacent</strong> <strong>combinator</strong>. If you remove the ~, the slider won’t work at all.</p><p>After that, it’s just a matter of adding the transitions and you’re done.</p><p>Here’s the <a href="https://codepen.io/ibrahimbutt/pen/goWxJX">codepen</a> if you want to see all of the code.</p><h3>Conclusion</h3><p><em>It’s that simple.</em><strong> </strong>Now I’m sitting here thinking, “does this really deserve a whole article? Is this even helpful?”. Drop a comment and let me know. The same applies if you have any questions.</p><h4>If you found this helpful, follow me on <a href="https://twitter.com/madebyibrahim">Twitter</a> and <a href="https://www.instagram.com/madebyibrahim/">Instagram</a> to be notified of future posts, and don’t forget to clap!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80dffb05afe9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>