Home/Frontend
Topic

Frontend

1,551 articles on Frontend.

11,834 articles
Frontend — Setting Height And Width On Images Is Important Again — Smashing Magazine

Setting Height And Width On Images Is Important Again — Smashing Magazine

Thanks to some recent changes in browsers, it’s now well worth setting `width` and `height` attributes on your images to prevent layout shifts and improve the experience of your site visitors. Barry Polland loves improvements that just work without any effort required of website owners. That is not to ignore the hard work required by the browser developers and standardization teams, of course, but

BPBarry PollardBarry Pollard·March 9, 2020Frontend
Frontend — Currying in CSS

Currying in CSS

Funny timing on this I was just looking at the website for Utopia (which is a responsive type project which I hate to admit I don't fully understand) and I

CCChris Coyier·March 6, 2020Frontend
Frontend — Avoid Keyboard Event-Related Bugs In Browser-Based Transliteration — Smashing Magazine

Avoid Keyboard Event-Related Bugs In Browser-Based Transliteration — Smashing Magazine

Transliteration is a popular way to input non-English characters using an English keyboard. The typical method of implementing this is via keyboard event capturing but there’s no uniform support from mobile browsers. In this article, Sandamal Siripathi explains a new method to eliminate such browser-related problems when developing web apps that use transliteration.

SSSandamal SiripathiSandamal Siripathi·March 6, 2020Frontend
Frontend — Introducing Alpine.js: A Tiny JavaScript Framework — Smashing Magazine

Introducing Alpine.js: A Tiny JavaScript Framework — Smashing Magazine

Ever built a website and reached for jQuery, Bootstrap, Vue.js or React to acheive some basic user interaction? Alpine.js is a fraction of the size of these frameworks because it involves no build steps and provides all of the tools you need to build a basic user interface. Today, Phil Smith is going to take a closer look at Alpine.js and how it can replace JQuery or larger JavaScript libraries to

PSPhil SmithPhil Smith·March 5, 2020Frontend
Frontend — What React Does (and Doesn't Do)

What React Does (and Doesn't Do)

With a name as big as React, it's bound to cause some Stream-Crossing Confusion, as I like to call it. How do you center a <div> in React? Dave Ceddia:

CCChris Coyier·March 4, 2020Frontend
Frontend — Why Are We Talking About CSS4? — Smashing Magazine

Why Are We Talking About CSS4? — Smashing Magazine

Around the web and within the CSS Working Group, there has been some discussion about whether we should specify a version of CSS — perhaps naming it CSS4. In this article, Rachel Andrew rounds up some of the pros and cons of doing so, and asks for your feedback on the suggestion.

RARachel AndrewRachel Andrew·March 4, 2020Frontend
Frontend — Vue.js: The Documentary

Vue.js: The Documentary

Hey how cool! A documentary about Vue! Good timing as it looks like VueConf is happening right now. (Reminder we have a site for conferences to tell you stuff

CCChris Coyier·March 3, 2020Frontend
Frontend — Selectors Explained

Selectors Explained

Have you ever found yourself either writing a CSS selector that winds up looking confusing as heck, or seen one while reading through someone's code? That

GGGeoff GrahamGeoff Graham·March 2, 2020Frontend
Frontend — The Perils of Hydration

The Perils of Hydration

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.

JWJosh W. Comeau·March 2, 2020Frontend
Frontend — Why is CSS Frustrating?

Why is CSS Frustrating?

Here’s a great thread by Kevin Powell that's making the rounds. He believes so many folks see CSS as a frustrating and annoying language:

RRRobin RendleRobin Rendle·February 27, 2020Frontend
Frontend — Pages for Likes

Pages for Likes

I posted about parsing an RSS feed in JavaScript the other day. I also posted about my RSS setup talking about how Feedbin is at the heart of it.

CCChris Coyier·February 24, 2020Frontend
Frontend — Persisting React State in localStorage

Persisting React State in localStorage

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!

JWJosh W. Comeau·February 24, 2020Frontend
Frontend — Setting Up Tailwind CSS In A React Project — Smashing Magazine

Setting Up Tailwind CSS In A React Project — Smashing Magazine

In this article, Blessing Krofegha introduces Tailwind CSS, a CSS library that gives you all of the building blocks you need to build bespoke designs without opinionated styles. With Tailwind CSS, you get to create the components that suit what you want or what you are working on. These components can be created by harnessing the power of the utility-first prowess of Tailwind CSS. You’ll also lear

BKBlessing KrofeghaBlessing Krofegha·February 24, 2020Frontend
Frontend — Animate SVG Path Changes in CSS

Animate SVG Path Changes in CSS

Every once in a while I'm motivated to attempt to draw some shapes with <path>, the all-powerful drawing syntax of SVG. I only understand a fragment of

CCChris Coyier·February 20, 2020Frontend
Frontend — How To Use The HTML Drag-And-Drop API In React — Smashing Magazine

How To Use The HTML Drag-And-Drop API In React — Smashing Magazine

In this tutorial, Chidi Orji will show you how to build a React drag-and-drop component for file and image uploads. In the process, we’ll learn about the HTML drag-and-drop API. We will also learn how to use the useReducer hook for managing state in a React functional component.

COChidi OrjiChidi Orji·February 19, 2020Frontend
Frontend — How To Make Cross-Browser Testing More Efficient With LambdaTest — Smashing Magazine

How To Make Cross-Browser Testing More Efficient With LambdaTest — Smashing Magazine

Whether you’re building a new site or you’re managing a live one, you can’t afford to make any changes without a process for cross-browser testing and a tool to do the heavy lifting for you. LambdaTest’s wide array of tests are the answer. From fully automated cross-browser tests to semi-automated tasks, we’re going to explore a much more efficient way to review your websites and all their browser

SSSuzanne ScaccaSuzanne Scacca·February 18, 2020Frontend
Frontend — Why JavaScript is Eating HTML

Why JavaScript is Eating HTML

Web development is always changing. One trend in particular has become very popular lately, and it fundamentally goes against the conventional wisdom about

MTMike TurleyMike Turley·February 13, 2020Frontend
Frontend — Setting Up API Mocking With Mirage JS And Vue.js — Smashing Magazine

Setting Up API Mocking With Mirage JS And Vue.js — Smashing Magazine

Almost all JavaScript projects that can be found out in the wild interact with a web service or API and either use it for authentications or getting user-related data. In this article, Kelvin Omereshone introduces Mirage JS, an API mocking library that lets you build, test and share a complete working JavaScript application without having to rely on any backend API or services. You’ll also learn h

KOKelvin OmereshoneKelvin Omereshone·February 13, 2020Frontend
Frontend — Understanding CSS Grid: Grid Template Areas — Smashing Magazine

Understanding CSS Grid: Grid Template Areas — Smashing Magazine

In a new series, Rachel Andrew breaks down the CSS Grid Layout specification. This time, Rachel Andrew will learn how to use the grid-template-areas property to define placement on the grid and find out how the property really works. If you haven’t used this layout method before, give it a try. We find that it is a lovely way to experiment with layouts and often use it when prototyping a layout —

RARachel AndrewRachel Andrew·February 12, 2020Frontend
Frontend — The Hooks of React Router

The Hooks of React Router

React Router 5 embraces the power of hooks and has introduced four different hooks to help with routing. You will find this article useful if you are looking

AMAgney MenonAgney Menon·February 11, 2020Frontend
Frontend — An Interview With Rémi Parmentier: A SmashingConf Austin Speaker — Smashing Magazine

An Interview With Rémi Parmentier: A SmashingConf Austin Speaker — Smashing Magazine

SmashingConf is coming to Austin, and in this post, Rachel Andrew brings you an interview with one of our speakers, Rémi Parmentier, who will be presenting on HTML email and aiming to solve all of your email creation woes. You can find all of that content, including a full transcript of the webinar in the post “Become An HTML Email Geek With These Videos From Rémi Parmentier.

RARachel AndrewRachel Andrew·February 10, 2020Frontend
Frontend — How To Create Maps With React And Leaflet — Smashing Magazine

How To Create Maps With React And Leaflet — Smashing Magazine

Leaflet is a very powerful tool, and we can create a lot of different kinds of maps. This tutorial will help you understand how to create an advanced map along with the help of React and Vanilla JS. In this article, Shajia Abidi is going to represent the locations of the non-medical fire incidents to which the SF Fire Department responded on a map.

SAShajia AbidiShajia Abidi·February 7, 2020Frontend
Frontend — Browser Version Release Spectrum

Browser Version Release Spectrum

Whenever a browser upgrades versions, it's a little marketing event, and rightly so. Looks like for Firefox it's about once a month, Chrome is ~6 weeks, and

CCChris Coyier·February 5, 2020Frontend
Frontend — A Day in the Life of a Frontend Product Engineer at Slack

A Day in the Life of a Frontend Product Engineer at Slack

6:45am The sound of coffee grinding wakes me up 15 minutes before my alarm. I’m not a morning person, but I always stumble bleary-eyed into the kitchen for some toast and coffee with my partner, which is my favorite daily ritual. I sit down, listen to my morning news podcasts — The Daily and AM…

SESlack Engineering·February 5, 2020Frontend
Frontend — Magic Flip Cards: Solving A Common Sizing Problem — Smashing Magazine

Magic Flip Cards: Solving A Common Sizing Problem — Smashing Magazine

In this article, Dan Halliday reviews the standard approach to creating animated flip cards, and introduces an improved method which solves its sizing problem. You’re going to build a flip card grid with some CSS basics — transforms, flex, and grid. Dan will cover: how flip cards are usually implemented using absolute positioning, the sizing problem that absolute positioning introduces, and a gene

DHDan HallidayDan Halliday·February 5, 2020Frontend
Frontend — CSS4

CSS4

What is CSS4? Is it a real thing? I hate to break it to you, but not really. But maybe we could make it a thing? CSS3 was successful, so why not keep that train rolling like they do in JavaScript?

CCChris Coyier·February 4, 2020Frontend
Frontend — How To Create A Card Matching Game Using Angular And RxJS — Smashing Magazine

How To Create A Card Matching Game Using Angular And RxJS — Smashing Magazine

Today, Anna Prenzel would like to focus on data streams resulting from click events on the user interface. The processing of such clickstreams is particularly useful for applications with an intensive user interaction where many events have to be processed. This article is dedicated to Angular developers who want to harness the concept of reactive programming. This is a programming style that — si

APAnna PrenzelAnna Prenzel·January 30, 2020Frontend