<![CDATA[Jerica Lancaster's blog]]> https://designselement.com/ RSS for Node Sun, 22 Dec 2024 18:21:45 GMT <![CDATA[Next-level frosted glass with backdrop-filter]]> https://designselement.com/css/backdrop-filter/ https://designselement.com/css/backdrop-filter/ Mon, 02 Dec 2024 13:15:00 GMT <p>Glassy headers have become a core part of the “slick startup” UI toolkit, but they’re all missing that final 10% that really makes it shine. In this tutorial, you’ll learn how to create the most realistic lush frosted glass anywhere on the internet.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/backdrop-filter/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[A Framework for Evaluating Browser Support]]> https://designselement.com/css/browser-support/ https://designselement.com/css/browser-support/ Tue, 26 Nov 2024 13:15:00 GMT <p>Lots of exciting new features have been landing in CSS recently, and it can be tough trying to figure out if they’re safe to use or not. We might know that a feature is available for 92% of users, but is that sufficient? Where do we draw the line? In this blog post, I’ll share the framework I use for deciding whether or not to use a modern CSS feature</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/browser-support/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[A Friendly Introduction to Container Queries]]> https://designselement.com/css/container-queries-introduction/ https://designselement.com/css/container-queries-introduction/ Mon, 04 Nov 2024 13:15:00 GMT <p>It’s been a couple of years since container queries started landing in browsers… so why isn’t anyone using them? It turns out that container queries are kinda tricky; they’re not as straightforward as media queries. In this tutorial, we’ll break it all down and make sense of them, so that you can start using them in your work.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/container-queries-introduction/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[How I Built My Blog]]> https://designselement.com/blog/how-i-built-my-blog-v2/ https://designselement.com/blog/how-i-built-my-blog-v2/ Tue, 24 Sep 2024 12:15:00 GMT <p>I recently launched a brand new version of this blog, and in this post, I share how it’s built! We’ll examine the tech stack and see how all of the pieces fit together, as well as dig into some of the details to see how they work.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/how-i-built-my-blog-v2/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Undeniable Utility Of CSS :has]]> https://designselement.com/css/has/ https://designselement.com/css/has/ Mon, 09 Sep 2024 13:15:00 GMT <p>Of all the latest and greatest CSS features, the “:has” pseudo-class wasn’t exactly at the top of my wishlist. Once I started using it, however, I kept discovering incredible things I could do with it. It’s now become a core part of my toolkit! In this blog post, I'll show you some practical real-world problems I solved using “:has”, as well as some wild experiments that blew my mind!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/has/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Promises From The Ground Up]]> https://designselement.com/javascript/promises/ https://designselement.com/javascript/promises/ Mon, 03 Jun 2024 13:30:00 GMT <p>The “Promises” API is a surprisingly tricky part of modern JavaScript. Without the right context, it doesn’t make much sense at all! In this tutorial, you’ll build an intuition for how Promises work by getting a deeper understanding of JavaScript and its limitations.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/javascript/promises/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Snappy UI Optimization with useDeferredValue]]> https://designselement.com/react/use-deferred-value/ https://designselement.com/react/use-deferred-value/ Mon, 13 May 2024 11:00:00 GMT <p>useDeferredValue is one of the most underrated React hooks. It allows us to dramatically improve the performance of our applications in certain contexts. I recently used it to solve a gnarly performance problem on this blog, and in this tutorial, I'll show you how! ⚡</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/use-deferred-value/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[CSS in React Server Components]]> https://designselement.com/react/css-in-rsc/ https://designselement.com/react/css-in-rsc/ Mon, 15 Apr 2024 11:00:00 GMT <p>You can’t make an omelette without cracking a few eggs, and when the core React team unveiled their vision for the future of React, some of my favourite libraries got scrambled 😅. In this blog post, we’re going to explore the compatibility issues between React Server Components and CSS-in-JS libraries like styled-components. You’ll understand what the issue is, what the options are, and what’s on the horizon. </p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/css-in-rsc/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[How To Center a Div]]> https://designselement.com/css/center-a-div/ https://designselement.com/css/center-a-div/ Tue, 13 Feb 2024 13:15:00 GMT <p>Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something else? Let's dig into it.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/center-a-div/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[An Interactive Guide to CSS Grid]]> https://designselement.com/css/interactive-guide-to-grid/ https://designselement.com/css/interactive-guide-to-grid/ Tue, 21 Nov 2023 11:00:00 GMT <p>CSS Grid is an incredibly powerful tool for building layouts on the web, but like all powerful tools, there's a significant learning curve. In this tutorial, we'll build a mental model for how CSS Grid works and how we can use it effectively. I'll share the biggest 💡 lightbulb moments I've had in my own learning journey.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/interactive-guide-to-grid/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Understanding the JavaScript Modulo Operator]]> https://designselement.com/javascript/modulo-operator/ https://designselement.com/javascript/modulo-operator/ Mon, 18 Sep 2023 12:00:00 GMT <p>One of the most commonly-misunderstood operators is Modulo (%). In this tutorial, we'll unpack exactly what this little bugger does, and learn how it can help us solve practical problems.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/javascript/modulo-operator/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Making Sense of React Server Components]]> https://designselement.com/react/server-components/ https://designselement.com/react/server-components/ Wed, 06 Sep 2023 13:00:00 GMT <p>This year, the React team unveiled something they've been quietly researching for years: an official way to run React components exclusively on the server. This is a significant paradigm shift, and it's caused a whole lot of confusion in the React community. In this tutorial, we'll explore this new world, and build an intuition for how it works, and how we can take advantage of it.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/server-components/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Animated Pride Flags]]> https://designselement.com/animation/pride-flags/ https://designselement.com/animation/pride-flags/ Tue, 06 Jun 2023 11:00:00 GMT <p>Happy Pride month! In this tutorial, I'll share a handful of my favourite animation tricks. You'll learn how to build an animated wavy pride flag using CSS keyframes and linear gradients. We'll also see how to make it dynamic using React. 🏳️‍🌈</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/animation/pride-flags/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The “const” Deception]]> https://designselement.com/javascript/the-const-deception/ https://designselement.com/javascript/the-const-deception/ Mon, 24 Apr 2023 13:30:00 GMT <p>The “const” keyword in JavaScript is used to create constants, variables that can't change. Curiously, though, we do seem to be able to edit objects and arrays that are created using “const”. In this tutorial, we're going to dig into the incredibly-important distinction between “assignment” and “mutation” in JavaScript.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/javascript/the-const-deception/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The End of Front-End Development]]> https://designselement.com/blog/the-end-of-frontend-development/ https://designselement.com/blog/the-end-of-frontend-development/ Mon, 20 Mar 2023 13:00:00 GMT <p>Large language models like GPT-4 are becoming increasingly capable, at an alarming rate. Within a couple of years, we won't need developers any more! …Or at least, that's the narrative going viral on Twitter. I'm much more optimistic about what these AI advancements mean for the future of software development.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/the-end-of-frontend-development/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Common Beginner Mistakes with React]]> https://designselement.com/react/common-beginner-mistakes/ https://designselement.com/react/common-beginner-mistakes/ Mon, 06 Mar 2023 11:00:00 GMT <p>I used to teach React at a local coding bootcamp, and I noticed that students kept getting tripped up by the same handful of things. In this article, we're going to go through 9 of the most dastardly gotchas. I'll show you how to solve these common problems, so you can avoid a lot of potential frustration!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/common-beginner-mistakes/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Data Binding in React]]> https://designselement.com/react/data-binding/ https://designselement.com/react/data-binding/ Mon, 09 Jan 2023 11:00:00 GMT <p>As developers, we don't like working with forms, but they're a critical part of most web applications! In this tutorial, you'll learn exactly how to wire up all of the different form controls in React. Never forget how to data-bind a checkbox or radio button again!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/data-binding/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Color Formats in CSS]]> https://designselement.com/css/color-formats/ https://designselement.com/css/color-formats/ Mon, 28 Nov 2022 13:15:00 GMT <p>CSS gives us so many options when it comes to expressing color—we can use hex codes, rgb, hsl, and more. Which option should we choose? This turns out to be a surprisingly important decision! In this article, we'll take a tour of color formats in CSS, and see which option will serve us best.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/color-formats/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[An Interactive Guide to Flexbox]]> https://designselement.com/css/interactive-guide-to-flexbox/ https://designselement.com/css/interactive-guide-to-flexbox/ Tue, 22 Nov 2022 11:00:00 GMT <p>When we truly learn the secrets of the Flexbox layout mode, we can build absolutely incredible things. Fluid layouts that stretch and shrink without arbitrary breakpoints. In this action-packed interactive tutorial, we'll pop the hood on the Flexbox algorithm and learn how to do remarkable things with it. ✨</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/interactive-guide-to-flexbox/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[A World-Class Code Playground with Sandpack]]> https://designselement.com/react/next-level-playground/ https://designselement.com/react/next-level-playground/ Tue, 11 Oct 2022 14:00:00 GMT <p>No developer blog or technical documentation site is complete without an interactive code playground. The CodeSandbox team recently released a wonderful tool called Sandpack, to help us create these live-updating code editors. In this tutorial, I'll show you how I use it on this blog.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/next-level-playground/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Understanding useMemo and useCallback]]> https://designselement.com/react/usememo-and-usecallback/ https://designselement.com/react/usememo-and-usecallback/ Tue, 30 Aug 2022 13:00:00 GMT <p>What's the deal with these two hooks?! Lots of devs find them confusing, for a whole host of reasons. In this tutorial, we'll dig deep and understand what they do, why they're useful, and how to get the most out of them.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/usememo-and-usecallback/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Why React Re-Renders]]> https://designselement.com/react/why-react-re-renders/ https://designselement.com/react/why-react-re-renders/ Tue, 16 Aug 2022 13:00:00 GMT <p>In React, we don't update the DOM directly, we tell React what we want the DOM to look like, and React tackles the rest. But how exactly does it do this? In this tutorial, we'll unpack exactly when and why React re-renders, and how we can use this information to optimize the performance of our React apps.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/why-react-re-renders/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Statements Vs. Expressions]]> https://designselement.com/javascript/statements-vs-expressions/ https://designselement.com/javascript/statements-vs-expressions/ Mon, 11 Jul 2022 10:30:00 GMT <p>One of the most foundational things to understand about JavaScript is that programs are made up of statements, and statements have slots for expressions. In this blog post, we'll dig into how these two structures work, and see how building an intuition about this can help us solve practical problems.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/javascript/statements-vs-expressions/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[My Wonderful HTML Email Workflow]]> tag.]]> https://designselement.com/react/wonderful-emails-with-mjml-and-mdx/ https://designselement.com/react/wonderful-emails-with-mjml-and-mdx/ Mon, 27 Jun 2022 12:00:00 GMT <p>If you've ever had the misfortune of being tasked with building a template for HTML emails, you know it's tricky business! In this blog post, I share the approach I took to build responsive, client-friendly emails without a single <table> tag.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/wonderful-emails-with-mjml-and-mdx/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Surprising Truth About Pixels and Accessibility]]> https://designselement.com/css/surprising-truth-about-pixels-and-accessibility/ https://designselement.com/css/surprising-truth-about-pixels-and-accessibility/ Tue, 17 May 2022 12:00:00 GMT <p>“Should I use pixels or rems?”. In this comprehensive blog post, we'll answer this question once and for all. You'll learn about the accessibility implications, and how to determine the best unit to use in any scenario.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/surprising-truth-about-pixels-and-accessibility/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[You Don’t Need a UI Framework]]> https://www.smashingmagazine.com/2022/05/you-dont-need-ui-framework/ https://www.smashingmagazine.com/2022/05/you-dont-need-ui-framework/ Tue, 03 May 2022 11:00:00 GMT <p>As developers, it can be tempting to grab a pre-styled UI framework like Material UI or Bootstrap. Seems like a great way to outsource design and save a bunch of time, right? In my experience, this is an unrealistic expectation, and things don’t quite work out that way.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://www.smashingmagazine.com/2022/05/you-dont-need-ui-framework/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Front-End Developer's Guide to the Terminal]]> https://designselement.com/javascript/terminal-for-js-devs/ https://designselement.com/javascript/terminal-for-js-devs/ Tue, 19 Apr 2022 10:30:00 GMT <p>If you want to learn a modern JavaScript framework like React or Angular, you better be familiar with the terminal! So many frameworks and tools assume that you're proficient with it, without ever explaining it. This blog post is your missing manual, covering all of the most important fundamentals.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/javascript/terminal-for-js-devs/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Understanding Layout Algorithms]]> https://designselement.com/css/understanding-layout-algorithms/ https://designselement.com/css/understanding-layout-algorithms/ Mon, 28 Mar 2022 11:00:00 GMT <p>As front-end developers, we often learn CSS by focusing on individual properties. Instead, we should focus on how the language uses those properties to calculate layouts. In this blog post, we'll pop the hood on CSS and see how the language is structured, and how to learn it effectively.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/understanding-layout-algorithms/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Delightful React File/Directory Structure]]> https://designselement.com/react/file-structure/ https://designselement.com/react/file-structure/ Tue, 15 Mar 2022 13:00:00 GMT <p>How should we structure components and other files in our React apps? I've iterated my way to a solution I'm really happy with. In this blog post, I'll share how it works, what the tradeoffs are, and how I mitigate them.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/file-structure/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Make Beautiful Gradients]]> https://designselement.com/css/make-beautiful-gradients/ https://designselement.com/css/make-beautiful-gradients/ Tue, 11 Jan 2022 14:00:00 GMT <p>Have you ever noticed that gradients tend to look a little gray and washed-out in the middle? This happens because of a mathematical quirk with RGB colors. Fortunately, we can work around this quirk, and create beautiful, lush, saturated gradients.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/make-beautiful-gradients/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[A Modern CSS Reset]]> https://designselement.com/css/custom-css-reset/ https://designselement.com/css/custom-css-reset/ Tue, 23 Nov 2021 12:00:00 GMT <p>I have a set of baseline CSS styles that come with me from project to project. In the past, I'd use a typical CSS reset, but times have changed, and I believe I have a better set of global styles!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/custom-css-reset/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Introducing “Shadow Palette Generator”]]> https://designselement.com/css/introducing-shadow-palette-generator/ https://designselement.com/css/introducing-shadow-palette-generator/ Tue, 16 Nov 2021 14:00:00 GMT <p>In order to create lush, realistic shadows in CSS, we need to use multiple layers and colors. How do we come up with all of the parameters, though? I've built a tool that'll help.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/introducing-shadow-palette-generator/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Designing Beautiful Shadows in CSS]]> https://designselement.com/css/designing-shadows/ https://designselement.com/css/designing-shadows/ Mon, 13 Sep 2021 12:00:00 GMT <p>When I look around the web, most of the shadows I see are fuzzy grey boxes. It doesn't have to be this way, though! CSS gives us the tools to create rich, lush, lifelike shadows. In this tutorial, I'll show you how.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/designing-shadows/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[An Interactive Guide to Keyframe Animations]]> https://designselement.com/animation/keyframe-animations/ https://designselement.com/animation/keyframe-animations/ Tue, 31 Aug 2021 13:30:00 GMT <p>CSS keyframe animations are incredibly flexible and powerful, but they’re also a bit weird. In this deep-dive tutorial, we'll learn how CSS keyframes work from the ground up, and see how to use them to build high-quality animations.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/animation/keyframe-animations/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The World of CSS Transforms]]> https://designselement.com/css/transforms/ https://designselement.com/css/transforms/ Mon, 09 Aug 2021 13:00:00 GMT <p>The “transform” property is such a powerful part of the CSS language! In this blog post, we'll take a deep look at this property and see some of the nifty things it can do.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/transforms/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[How To Learn Stuff Quickly]]> https://designselement.com/blog/how-to-learn-stuff-quickly/ https://designselement.com/blog/how-to-learn-stuff-quickly/ Mon, 19 Jul 2021 14:00:00 GMT <p>As software developers, we're always learning new things; it's practically the whole gig! If we can learn to quickly pick up new languages/frameworks/tools, we'll become so much more effective at our job. It's sort of a superpower.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/how-to-learn-stuff-quickly/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Demystifying styled-components]]> https://designselement.com/react/demystifying-styled-components/ https://designselement.com/react/demystifying-styled-components/ Mon, 21 Jun 2021 13:00:00 GMT <p>For so many React devs, styled-components seems kinda magical. It isn't at all clear how it uses traditional CSS features under-the-hood, and that lack of clarity can cause real problems when things go awry. In this post, we'll learn exactly how styled-components works by building our own mini-version.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/demystifying-styled-components/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[How I Built My Blog]]> https://designselement.com/blog/how-i-built-my-blog/ https://designselement.com/blog/how-i-built-my-blog/ Tue, 20 Apr 2021 12:15:00 GMT <p>An in-depth look at the technical stack behind this very blog! We'll see how I use Next's API routes to implement my hit and like counters, how I use MDX to add interaction and customization, and how I organize my codebase, among others.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/how-i-built-my-blog/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Building a Magical 3D Button]]> https://designselement.com/animation/3d-button/ https://designselement.com/animation/3d-button/ Tue, 30 Mar 2021 13:30:00 GMT <p>Every action we take on the web starts with a button click, and yet most buttons are ho-hum and uninspired. In this tutorial, we'll build an animated 3D button with HTML and CSS that sparks joy.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/animation/3d-button/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Importance of Learning CSS]]> https://designselement.com/css/the-importance-of-learning-css/ https://designselement.com/css/the-importance-of-learning-css/ Wed, 03 Mar 2021 13:00:00 GMT <p>I know so many super-talented developers who share the same achilles heel: CSS. Instead of trying to “outrun” CSS, this article explores why leaning in and going deeper can be a tremendous boon for your development life and your career.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/the-importance-of-learning-css/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[What The Heck, z-index??]]> https://designselement.com/css/stacking-contexts/ https://designselement.com/css/stacking-contexts/ Mon, 22 Feb 2021 14:00:00 GMT <p>The z-index property can be a tricky little bugger. Sometimes, no matter how much you crank up the number, the element never rises to the top! In this article, we explore stacking contexts, and see how they can thwart our efforts to use z-index. We'll also learn how to use this mechanism to our advantage.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/stacking-contexts/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[An Interactive Guide to CSS Transitions]]> https://designselement.com/animation/css-transitions/ https://designselement.com/animation/css-transitions/ Tue, 09 Feb 2021 12:00:00 GMT <p>This comprehensive guide shows how to use CSS transitions! A back-to-basics look at the fundamental building blocks we need to create microinteractions and other animations.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/animation/css-transitions/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The styled-components Happy Path]]> https://designselement.com/css/styled-components/ https://designselement.com/css/styled-components/ Mon, 25 Jan 2021 11:30:00 GMT <p>styled-components is a wonderfully powerful styling library for React, and over the years I've learned a lot about how to use it effectively. This article shares my personal “best practices”.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/styled-components/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Let's Bring Spacer GIFs Back!]]> https://designselement.com/react/modern-spacer-gif/ https://designselement.com/react/modern-spacer-gif/ Mon, 11 Jan 2021 10:00:00 GMT <p>The 90s web gave us many delightful things: web rings, guestbooks, “under construction” animations, and spacer GIFs. In this article, we'll see how I use a Spacer component to solve common layout problems, and why it's often a great tool for the job in the modern web.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/modern-spacer-gif/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Refreshing Server-Side Props]]> https://designselement.com/nextjs/refreshing-server-side-props/ https://designselement.com/nextjs/refreshing-server-side-props/ Mon, 14 Dec 2020 12:00:00 GMT <p>Next allows you to do server-side data-fetching, but what happens when that data needs to change on the client? This brief tutorial shows how to re-fetch the props without doing a full server reload.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/nextjs/refreshing-server-side-props/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Rules of Margin Collapse]]> https://designselement.com/css/rules-of-margin-collapse/ https://designselement.com/css/rules-of-margin-collapse/ Mon, 07 Dec 2020 13:30:00 GMT <p>“Margin collapse” has a dastardly reputation, one of the trickier parts of CSS. Fortunately, it gets a lot easier once you learn a few rules! In this tutorial, we take a deep dive into the governing principles, and learn how to use them to our advantage.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/rules-of-margin-collapse/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Boop!]]> https://designselement.com/react/boop/ https://designselement.com/react/boop/ Mon, 23 Nov 2020 12:30:00 GMT <p>An in-depth tutorial that teaches how to create one of the most adorable interactions I've ever created. We'll learn how to use React components and hooks to abstract behaviours, and see how to design the perfect API. Even if you're not into animations, I think you'll find it interesting!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/boop/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Chasing the Pixel-Perfect Dream]]> https://designselement.com/css/pixel-perfection/ https://designselement.com/css/pixel-perfection/ Mon, 02 Nov 2020 15:00:00 GMT <p>Is it possible to create an implementation of a design that matches to-the-pixel? Well, not really, but that shouldn't discourage us! In this article, I'll show how I became designers' best friend by leveraging a series of tricks to get my implementation looking near-pixel-perfect.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/pixel-perfection/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Hands-Free Coding]]> https://designselement.com/blog/hands-free-coding/ https://designselement.com/blog/hands-free-coding/ Wed, 21 Oct 2020 11:00:00 GMT <p>Earlier this year, I lost the ability to use a keyboard and mouse for extended periods. Fortunately, this wasn't as catastrophic as it sounds! This article chronicles my experience using adaptive tools like dictation and eye-tracking as my primary mechanisms for writing code.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/hands-free-coding/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Full-Bleed Layout Using CSS Grid]]> https://designselement.com/css/full-bleed/ https://designselement.com/css/full-bleed/ Mon, 05 Oct 2020 11:00:00 GMT <p>Certain layouts are surprisingly dastardly. On the modern web, one of the most common layouts is also one of the trickiest. In this tutorial, I break down how to build the "full-bleed" layout using CSS Grid.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/full-bleed/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[A Friendly Introduction to Spring Physics]]> https://designselement.com/animation/a-friendly-introduction-to-spring-physics/ https://designselement.com/animation/a-friendly-introduction-to-spring-physics/ Mon, 21 Sep 2020 14:15:00 GMT <p>Of all the little tips and techniques I've picked up over the years about animation, spring physics remains one of the most powerful and flexible. In this tutorial, we'll learn how to harness their power to build fluid, organic transitions.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/animation/a-friendly-introduction-to-spring-physics/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Local Testing on an iPhone]]> https://designselement.com/blog/local-testing-on-an-iphone/ https://designselement.com/blog/local-testing-on-an-iphone/ Tue, 26 May 2020 13:15:00 GMT <p>Learn how to set up an ideal workflow for debugging your development server on your iPhone. This may not be the most exciting topic I've written about, but it's probably one of the most useful!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/local-testing-on-an-iphone/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Animated Sparkles in React]]> component. Wrap it around text or images and watch them twinkle! This neat trick is a perfect way to emphasize positive or exciting things.]]> https://designselement.com/react/animated-sparkles-in-react/ https://designselement.com/react/animated-sparkles-in-react/ Tue, 19 May 2020 11:00:00 GMT <p>In this dazzling tutorial, we'll see how to build an animated <Sparkles> component. Wrap it around text or images and watch them twinkle! This neat trick is a perfect way to emphasize positive or exciting things.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/animated-sparkles-in-react/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Lessons Learned Speaking at Conferences]]> https://designselement.com/career/lessons-learned-speaking-at-conferences/ https://designselement.com/career/lessons-learned-speaking-at-conferences/ Wed, 06 May 2020 16:00:00 GMT <p>Speaking at conferences is equal parts exciting and terrifying. This article is a behind-the-scenes look at what the experience is like, and shares tips for getting started as a conference speaker.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/career/lessons-learned-speaking-at-conferences/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Accessible Animations in React]]> https://designselement.com/react/prefers-reduced-motion/ https://designselement.com/react/prefers-reduced-motion/ Mon, 04 May 2020 02:30:00 GMT <p>I really love animation, but not everybody does. In fact, it can make some people literally sick! In this tutorial, we'll see how to ensure that we respect user preferences, and create animations that can be disabled.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/prefers-reduced-motion/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Why My Blog is Closed-Source]]> https://designselement.com/blog/why-my-blog-is-closed-source/ https://designselement.com/blog/why-my-blog-is-closed-source/ Thu, 30 Apr 2020 13:00:00 GMT <p>In our community, it's so common for developer projects to be open-source. I'm breaking with this trend for my blog, but I have good reasons! In this article, I'll share my reasoning, as well as a workaround in case you _really_ want to see the source. If you're considering whether a project should be open-source or not, I hope you'll find it valuable.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/blog/why-my-blog-is-closed-source/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Quest for the Perfect Dark Mode]]> https://designselement.com/react/dark-mode/ https://designselement.com/react/dark-mode/ Wed, 22 Apr 2020 00:45:00 GMT <p>Dark Mode has become common enough that it's a user expectation. And yet, creating the perfect dark mode with a statically-built site/app is deceptively tricky. In this in-depth tutorial, we'll see how to build the perfect, flicker-free, customizable theming solution for React/Next.js apps.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/dark-mode/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[CSS Variables for React Devs]]> https://designselement.com/css/css-variables-for-react-devs/ https://designselement.com/css/css-variables-for-react-devs/ Mon, 13 Apr 2020 13:15:00 GMT <p>CSS variables are *really* cool, and they're incredibly powerful when it comes to React! This tutorial shows how we can use them with React to create dynamic themes. We'll see how to get the most out of CSS-in-JS tools like styled-components, and how our mental frame around media queries has been wrong all along.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/css-variables-for-react-devs/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Styling Ordered Lists with CSS Counters]]> https://designselement.com/css/styling-ordered-lists-with-css-counters/ https://designselement.com/css/styling-ordered-lists-with-css-counters/ Tue, 07 Apr 2020 14:00:00 GMT <p>Styling an ordered list can be surprisingly tricky; there's no way to get at that bullet! In this tutorial, we'll see a handy trick using CSS counters that lets us style ordered lists without breaking proper semantics.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/css/styling-ordered-lists-with-css-counters/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Announcing “use-sound”, a React Hook for Sound Effects]]> https://designselement.com/react/announcing-use-sound-react-hook/ https://designselement.com/react/announcing-use-sound-react-hook/ Mon, 30 Mar 2020 13:10:00 GMT <p>By and large, using the web is a visual experience. This is in terrible contrast to mobile apps, which interact with three of our human senses (sight, sound, and touch, through haptic feedback). I just released a library to make it easy to add sound to your React app, and I make the case that you should consider using it!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/announcing-use-sound-react-hook/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Becoming a Software Developer Without a CS Degree]]> https://designselement.com/career/no-cs-degree-required/ https://designselement.com/career/no-cs-degree-required/ Mon, 16 Mar 2020 14:20:00 GMT <p>A look at how hundreds of developers got their start in the industry despite not having a Computer Science or Software Engineering degree. We'll sort responses into 6 categories, and detail strategies that you can use to ensure you capture the attention of potential employers!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/career/no-cs-degree-required/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[The Perils of Hydration]]> https://designselement.com/react/the-perils-of-rehydration/ https://designselement.com/react/the-perils-of-rehydration/ Mon, 02 Mar 2020 14:00:00 GMT <p>A surprisingly-common misconception can lead to big rendering issues that are difficult to debug. This deep-dive tutorial examines how React and Gatsby can be used to pre-render content, and how we can work around the constraints to build dynamic, personalized web apps.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/the-perils-of-rehydration/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Persisting React State in localStorage]]> https://designselement.com/react/persisting-react-state-in-localstorage/ https://designselement.com/react/persisting-react-state-in-localstorage/ Mon, 24 Feb 2020 17:00:00 GMT <p>A common thing in React development is that we want to store a bit of React state in localStorage, and re-initialize from that value on the next page-load. This quick tutorial shows you how we can build a custom hook that does exactly this!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/persisting-react-state-in-localstorage/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Effective Collaboration with Product and Design]]> https://designselement.com/career/effective-collaboration/ https://designselement.com/career/effective-collaboration/ Tue, 21 Jan 2020 14:00:00 GMT <p>How we work with design can have a tremendous impact on our overall output, and yet we don't always treat it as very important. A look at how collaborating with design can supercharge our own productivity.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/career/effective-collaboration/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Magical Rainbow Gradients]]> https://designselement.com/react/rainbow-button/ https://designselement.com/react/rainbow-button/ Mon, 13 Jan 2020 13:00:00 GMT <p>If you've ever tried to animate a gradient, you've been met with a harsh reality—it isn't possible. At least, it wasn't! In this tutorial, we'll leverage bleeding-edge browser features to animate ANY CSS property, including background gradients, using CSS Houdini, CSS variables, and React.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/rainbow-button/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Finding your first remote job]]> https://designselement.com/career/remote-work-pt2/ https://designselement.com/career/remote-work-pt2/ Thu, 19 Dec 2019 10:30:00 GMT <p>As remote work becomes increasingly popular, I am frequently asked how to get started. This article shares everything I know about landing that first remote gig.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/career/remote-work-pt2/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[My experience as a remote worker]]> https://designselement.com/career/remote-work/ https://designselement.com/career/remote-work/ Mon, 02 Dec 2019 13:30:00 GMT <p>I've spent half of my career working remotely. This post chronicles those experiences, giving a real-world window into what it's like to work fully-remote as a software engineer.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/career/remote-work/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Clever Code Considered Harmful]]> https://designselement.com/career/clever-code-considered-harmful/ https://designselement.com/career/clever-code-considered-harmful/ Wed, 13 Nov 2019 18:03:43 GMT <p>As engineers, it can be really satisfying for us to implement clever, terse solutions to problems, relying on advanced tricks and techniques. As a result, we often write code that is hostile and inaccessible to the junior folks on our team. This article makes the case that we should strive to write simple, accessible code, using the dumb old primitives that everyone knows.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/career/clever-code-considered-harmful/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Folding the DOM]]> https://designselement.com/react/folding-the-dom/ https://designselement.com/react/folding-the-dom/ Sun, 19 May 2019 19:00:00 GMT <p>In this post, we'll explore a technique we can use to "fold" a DOM node, like folding a letter in real-life. On that journey, we'll learn a lot about 3D transforms and CSS animation techniques!</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/folding-the-dom/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Dynamic Bézier Curves]]> https://designselement.com/animation/dynamic-bezier-curves/ https://designselement.com/animation/dynamic-bezier-curves/ Wed, 23 May 2018 13:30:00 GMT <p>A deep dive into Bézier curves in React. We'll look at how to build dynamic effects such as scroll-to-flatten using SVG path instructions, and how to architect our components for maximum readability and reusability.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/animation/dynamic-bezier-curves/">Keep reading</a>.</strong> </div> <br /> <br /> <![CDATA[Animating the Unanimatable]]> https://designselement.com/react/animating-the-unanimatable/ https://designselement.com/react/animating-the-unanimatable/ Mon, 15 Feb 2016 18:03:43 GMT <p>An in-depth look at the surprisingly complicated problem of animating the transition when two items in a list swap positions.</p> <div style="margin-top: 50px; font-style: italic;"> <strong><a href="https://designselement.com/react/animating-the-unanimatable/">Keep reading</a>.</strong> </div> <br /> <br />