I was recently noodling around with some new layout ideas for An Event Apart’s speaker pages (e.g., Chris Coyier’s or Jen Simmons’) and wanted to share the ideas with other members of the team. But what I really wanted to show was wireframes to convey basic arrangement of the pieces, since I hadn’t yet done any time polishing details.Read More
However, to summarize in a few words, the idea here is to show through practical, short examples how Redux works and what are its main pieces.
We’ll try to stick to the “Tools, not rules” mantra and keep the JS buzzwords to a minimum. Since we won’t be able to cover everything related to JS performance in a 2000 word article, make sure you read the references and do your own research afterwards.
You may not realise it, but bandwidth is expensive. It costs you time, money, and battery power whenever you download a file larger than it needs to be.
Grid layouts are fundamental to the design of websites, and the CSS Grid module is the most powerful and easiest tool for creating it.
Today I spent about an hour in writing a few very simple Intersection Observer tests, two hours in running them in a few browsers, and now an hour in writing down the results.Read More
Below are the essential tags for basic, minimalist websites. Consider meta tags for multiple devices and essential upgrades.
On 11 July 1973, 123 passengers lost their lives when their Varig 820 flight from Rio de Janeiro to Paris crashed due to a fire on board1. Only 11 passengers survived. The fire started when a cigarette was disposed of in the waste bin in the lavatory, where someone had gone for a secretive smoke.
Forms have always been notoriously difficult to style with CSS, but there are several little-used selectors that give us significant power to style inputs and surrounding elements. Some of these are relatively new, while others have been available for quite some time.
CSS animations and transitions are great! However, while recently toying with an idea, I got really frustrated with the fact that gradients are only animatable in Edge (and IE 10+).
In the course of my day at work I will often wonder if the next bug is the bug that will finish me. I am acutely aware of and could instantly list for you 15 things about the CodePen codebase that I should probably know more about to do a better job of my role.Read More
Recently I have picked up an interest in functional programming. Its concepts fascinate me: applying math to enable strong abstractions and forcing purity to avoid side effects and enable good reusability of code. I also find it incredibly complex.
On some particularly heavy sites, the user needs to see a visual cue temporarily to indicate that resources and assets are still loading before they taking in a finished site
In August, we released a major redesign of slack.com, and we want to give you a peek behind-the-scenes. Rebuilding our marketing website was a massive project that took careful coordination across a variety of teams, departments, and agencies.
When first learning how to use Grid Layout, you might begin by addressing positions on the grid by their line number. This requires that you keep track of where various lines are on the grid, and also be aware of the fact the line numbers reverse if your site is displayed for a right-to-left language.
These past few days, I dove into Visual Studio Code and TypeScript in an attempt to get a better workflow going with GraphQL / React apps.Read More
CSS variables are opening up exciting new possibilities, like creating a very performant live theme editor that dynamically updates CSS values.
React was open-sourced in 2013. Since then, it has evolved. As you search the web, you’ll stumble across old posts with dated approaches. So, here are eight key decisions your team needs to make when writing React components today.
If you are a front-end developer, I’m 100% sure that you heard about CodePen. CodePen is a developer sandbox or playground where you can write HTML, JS, CSS, run and test your code.
Accessibility is an important topic for anyone who builds things for the web, and one that is neglected far too often. We at trivago have also been guilty of this, but we are slowly making changes with the aim of improving the accessibility of our site.
CSS selectors have progressed massively over the years, giving developers far more power for targeting specific bits on their pages.
It happens pretty often to encounter situations when you don’t like a default style for an HTML element. The methodology that has proven to be reliable over time is to use the so-called CSS utility classes.
The usage of custom fonts in web pages have steadily increased in recent years. As of this writing, 68% of sites in the HTTP Archive use at least one custom font. At eBay, we have been discussing custom web fonts for typography for quite some time, but never really pursued it.
I’m not sure what it is with web front-end dev, that most of the time we’re happy to hit a button in Chrome devtools and tick the box in JIRA to say that the site was checked in multiple Android devices having never considered trying a real device.Read More
A small set of ideas for organic shape effects. The demos show some ways to use animated SVG morphs interactively on a website, including a menu hover and a content reveal effect.
Una Kravets is absolutely right. In modern CSS development, there are so many things to learn. For someone starting out today, it’s hard to know where to start.
We’re excited to announce the release of React v16.0! Among the changes are some long-standing feature requests, including fragments, error boundaries, portals, support for custom DOM attributes, improved server-side rendering, and reduced file size.
I’ve been using CSS grid (which henceforth will be referred to as Grid) for quite a bit now, and although I often talk about how we can use grid to make all kinds of creative layoutsRead More
This is not a front-end development tutorial and you will not learn any new coding techniques by reading this. It is just a simple reminder why we should embrace the current state of front-end development instead of complaining about its complexity.
I want to be very clear and upfront: this is not a CSS vs JS post. If you are looking for another one of those, stop reading this now. This post is not about something being better, it’s about people and expectations.Read More
A couple of months ago, someone asked if I’d written a page bloat update recently. The answer was no. I’ve written a lot of posts about page bloat, starting way back in 2012, when the average page hit 1MB.
You can never have enough Morgan Freeman in your sites. Just specify any size as per the examples below and make your website Mogan Freeman-tastic.
Treebo recently shipped a new Progressive Web App as their default mobile experience, initially using React and eventually switching to Preact in production.
The CSS guide has always been one of our most popular resources, helping folks around the world who code emails get their job done. As an email developer, I’ve considered it to be an iconic internet landmark.
Custom Elements are the lynchpin in the Web Components specifications. They give developers the ability to define their own HTML elements. When coupled with Shadow DOM, Custom Elements should be able to work in any application. But things don’t always work seamlessly.Read More
Cannot read property “x” of undefined. I’m guessing if you’re reading this you’ve seen that message before, and probably at some point wanted to throw something through your monitor.
Consistency is one of the key reasons why we need coding guidelines and also a factor for code quality.
Gulp is a workflow automation tool that helps you build cool stuff faster; here’s how to use it for frontend development.
Recently, there has been a proliferation of virtual reality (VR) web browsers and VR capabilities added to traditional browsers
Once you grasp the few fundamental concepts, you enter a whole new world of possibilities. Let’s demystify this fantastic animation tool!Read More
When is a heading not a heading? Serious question, the answer lies behind one of the most common accessibility problems on the web.
Delivering CSS & JS on your websites is completely different with HTTP/2, and here is a guide on how I’ve done it.
If you have ever inherited bad CSS with the obligation of maintaining it, you might have felt some empathy towards others who would maintain your code in the future.
You can now pretty easily implement the feature without the need for a library at all, thanks to the document’s execCommand method. Support for it is also really good now.