Home/Frontend
Topic

Frontend

1,551 articles on Frontend.

11,834 articles
Frontend — Styling Layout Wrappers In CSS

Styling Layout Wrappers In CSS

Two things that strike me often about the web are how many ways there are to go about the same thing and how many considerations go into even the most

GGGeoff GrahamGeoff Graham·June 29, 2020Frontend
Frontend — Firebase Push Notifications In React — Smashing Magazine

Firebase Push Notifications In React — Smashing Magazine

In this tutorial, Chidi Orji will show you how to work with Firebase push notifications in the backend and frontend. We’ll set up the notifications system with an Express back-end server. Afterwards, you’ll listen for the notifications in a React front-end app. You will implement the backend first, then move on to the frontend. In that way, you can use whichever section appeals more to you. So let

COChidi OrjiChidi Orji·June 29, 2020Frontend
Frontend — The Return of the 90s Web

The Return of the 90s Web

One of my forever-lessons here on CSS-Tricks is that having your own website and blogging on it is a good idea. It's probably one of the best decisions I've

CCChris Coyier·June 26, 2020Frontend
Frontend — Line-Animated Hamburger Menu

Line-Animated Hamburger Menu

This kind of SVG + CSS animation trickery is catnip to me. Mikael Ainalem shares how to draw a hamburger icon (the "three lines" thing you're well familiar

CCChris Coyier·June 26, 2020Frontend
Frontend — Dropbox dives into CoffeeScript

Dropbox dives into CoffeeScript

During July's Hackweek, the three of us rewrote Dropbox's full browser-side codebase to use CoffeeScript instead of JavaScript, and we've been really happy with how it's been going so far. This is a controversial subject, so we thought we'd start by explaining why...

DWDan Wheeler·June 26, 2020Frontend
Frontend — The Mad Magazine Fold-In Effect in CSS

The Mad Magazine Fold-In Effect in CSS

This was always my favorite thing in Mad magazine. One page (the inside of the back cover, I think) was covered in a zany illustration. You folded that page

CCChris Coyier·June 25, 2020Frontend
Frontend — A Practical Guide To Testing React Applications With Jest — Smashing Magazine

A Practical Guide To Testing React Applications With Jest — Smashing Magazine

Building a well-functioning application requires good testing; otherwise, knowing whether your application works as expected would be a matter of guesswork and luck. Jest is one of the best tools available for testing React applications. In this article, Adeneye David Abiodun will show you everything you need to create a solid test for your React components and application.

ADAdeneye David AbiodunAdeneye David Abiodun·June 24, 2020Frontend
Frontend — Rough Notation

Rough Notation

This is a neat little library. It uses SVG to insert hand-drawn looking annotations to elements (probably text), like underlines and box highlights (there are

CCChris Coyier·June 22, 2020Frontend
Frontend — Easing Animations in Canvas

Easing Animations in Canvas

The <canvas> element in HTML and Canvas API in JavaScript combine to form one of the main raster graphics and animation possibilities on the web. A

DSDarshan SomashekarDarshan Somashekar·June 19, 2020Frontend
Frontend — Better Reducers With Immer — Smashing Magazine

Better Reducers With Immer — Smashing Magazine

In this article, we’re going to learn how to use Immer to write reducers. When working with React, we maintain a lot of state. To make updates to our state, we need to write a lot of reducers. Manually writing reducers results in bloated code where we have to touch almost every part of our state. This is tedious and error-prone. In this article, Chidi Orjil going to see how Immer brings more simpl

COChidi OrjiChidi Orji·June 16, 2020Frontend
Frontend — On Adding IDs to Headings

On Adding IDs to Headings

Here's a two-second review. If an element has an ID, you can link to it with natural browser behavior. It's great if headings have them, because it's often

CCChris Coyier·June 11, 2020Frontend
Frontend — Building A Facial Recognition Web Application With React — Smashing Magazine

Building A Facial Recognition Web Application With React — Smashing Magazine

In this article, Adeneye David Abiodun explains how to build a facial recognition web app with React by using the Face Recognition API, as well as the Face Detection model and Predict API. The app built in this article is similar to the face detection box on a pop-up camera in a mobile phone — it’s able to detect a human face in any image fetched from the Internet. Please note that you will need t

ADAdeneye David AbiodunAdeneye David Abiodun·June 11, 2020Frontend
Frontend — Higher-Order Components In React — Smashing Magazine

Higher-Order Components In React — Smashing Magazine

In this tutorial, Shedrack Akintayo is going to learn about higher-order components, the syntax of higher-order components, as well as use cases for them. In the process, you will build a higher-order component from an existing React component. By the end of this tutorial, you will understand the basics of higher-order components and how to build them.

SAShedrack AkintayoShedrack Akintayo·June 8, 2020Frontend
Frontend — Consuming REST APIs In React With Fetch And Axios — Smashing Magazine

Consuming REST APIs In React With Fetch And Axios — Smashing Magazine

If you’re a React developer who’d like to learn how you can start consuming APIs in your React applications, then this article is for you. Consuming REST APIs in a React Application can be done in various ways, but in this tutorial, Shedrack Akintayo will be discussing how we can consume REST APIs using two of the most popular methods known as Axios and Fetch API. You will learn what a REST API is

SAShedrack AkintayoShedrack Akintayo·June 3, 2020Frontend
Frontend — A New Way to Delay Keyframes Animations

A New Way to Delay Keyframes Animations

If you’ve ever wanted to add a pause between each iteration of your CSS @keyframes animation, you’ve probably been frustrated to find there’s no built-in way

EJEric Johnson·June 2, 2020Frontend
Frontend — Overlapping Header with CSS Grid

Overlapping Header with CSS Grid

Snook shows off a classic design with an oversized header up top, and a content area that is "pulled up" into that header area. My mind goes to the same place:

CCChris Coyier·June 1, 2020Frontend
Frontend — React Error Handling And Reporting With Error Boundary And Sentry — Smashing Magazine

React Error Handling And Reporting With Error Boundary And Sentry — Smashing Magazine

In this article, Chidi Orji will explore the concept of error boundaries in a React application. You’ll work through an example app to see how we can use error boundaries to deliver a better app experience. Finally, you’ll integrate Sentry into our error boundary for realtime error reporting. The only prerequisite is that you have some familiarity with React class components. Let’s dig in!

COChidi OrjiChidi Orji·June 1, 2020Frontend
Frontend — Increment Issue 13: Frontend

Increment Issue 13: Frontend

Increment is a beautiful quarterly magazine (print and web) published by Stripe "about how teams build and operate software systems at scale". While there is

CCChris Coyier·May 30, 2020Frontend
Frontend — How To Create Better Angular Templates With Pug — Smashing Magazine

How To Create Better Angular Templates With Pug — Smashing Magazine

Pug is a template engine that allows you to write cleaner templates with less repetition. In Angular, you can use Pug to write component templates and improve a project’s development workflow. In this article, Zara Cooper In will cover how you — as an Angular developer — can use Pug to write better templates more efficiently. You’ll learn how to install Pug in your Angular apps and transition exis

ZCZara CooperZara Cooper·May 28, 2020Frontend
Frontend — Code in the browser with GitHub Classroom

Code in the browser with GitHub Classroom

Learn about some new ways students can code in the browser. With online integrated development environments (IDEs), students can get right to work in a web browser, avoiding software conflicts that might happen on their local machines.

AJArelia JonesArelia Jones·May 26, 2020Frontend
Frontend — Getting Started With Axios In Nuxt — Smashing Magazine

Getting Started With Axios In Nuxt — Smashing Magazine

Axios is a promise-based HTTP client that works in the browser and Node.js environment or, in simpler terms, it is a tool for making requests in client-side applications and Node.js environment. In this tutorial, Timi Omoyeni will learn how to make a request in our Nuxt.js applications using the Axios module. You will also learn how to use the `ayncData` and `fetch` methods to fetch data on the se

TOTimi OmoyeniTimi Omoyeni·May 26, 2020Frontend
Frontend — Building Reusable React Components Using Tailwind — Smashing Magazine

Building Reusable React Components Using Tailwind — Smashing Magazine

Tailwind is a popular utility-first CSS framework that provides low-level class names to web developers. It does not have any JavaScript and works well with existing frameworks such as React, Vue, Angular, Ember, and others. Whilst this is positive, it can be confusing for new developers to understand how to integrate Tailwind in their applications. In this article, Tilo Mitra will explore ways to

TMTilo MitraTilo Mitra·May 25, 2020Frontend
Frontend — Understanding Machines: An Open Standard For JavaScript Functions — Smashing Magazine

Understanding Machines: An Open Standard For JavaScript Functions — Smashing Magazine

In this article, Kelvin Omereshone introduces you to machines, an open standard for JavaScript functions. At the end of this article, you should be familiar with what machines are and how to implement them. There is no special prerequisite for this article. If you can write a JavaScript function, then you’ll be able to follow along. With all that said, let’s dive in.

KOKelvin OmereshoneKelvin Omereshone·May 21, 2020Frontend
Frontend — WordPress Block Transforms

WordPress Block Transforms

This has been the year of Gutenberg for us here at CSS-Tricks. In fact, that's a goal we set at the end of last year. We're much further along that I thought

CCChris Coyier·May 19, 2020Frontend
Frontend — Animated Sparkles in React

Animated Sparkles in React

In this dazzling tutorial, we'll see how to build an animated component. Wrap it around text or images and watch them twinkle! This neat trick is a perfect way to emphasize positive or exciting things.

JWJosh W. Comeau·May 19, 2020Frontend
Frontend — Unprefixed `appearance `

Unprefixed `appearance `

It's interesting how third-parties are sometimes super involved in pushing browser things forward. One big story there was how Bloomberg hired Igalia to

CCChris Coyier·May 18, 2020Frontend
Frontend — How To Create A Mobile App In Expo And Firebase (For iOS And Android) — Smashing Magazine

How To Create A Mobile App In Expo And Firebase (For iOS And Android) — Smashing Magazine

The social media company released React Native, and it quickly became the most popular framework for building mobile apps with JavaScript. In this article, based on his experience with creating a GPS and navigation application, Chafik Gharbi will show you how to create a mobile app using Expo and Firebase services such as Firestore, Firebase functions and Expo push notifications.

CGChafik GharbiChafik Gharbi·May 18, 2020Frontend
Frontend — How to Tame Line Height in CSS

How to Tame Line Height in CSS

In CSS, line-height is probably one of the most misunderstood, yet commonly-used attributes. As designers and developers, when we think about line-height, we

CWCaleb WilliamsCaleb Williams·May 15, 2020Frontend
Frontend — CSS fix for 100vh in mobile WebKit

CSS fix for 100vh in mobile WebKit

A surprisingly common response when asking people about things they'd fix about anything in CSS, is to improve the handling of viewport units.

CCChris Coyier·May 15, 2020Frontend
Frontend — A Day in the Life of a Frontend Foundations Engineer at Slack

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

6:28 am First alarm rings. Snooze. 6:30 am Second alarm rings. Snooze. 6:34 am Final alarm rings and I know this is the last one, so I hop out of bed and immediately play some music. Music really has a way of waking me up, and I typically play Sofi Tukker or Rufus Du Sol…

SESlack Engineering·May 14, 2020Frontend
Frontend — Styling Components In React — Smashing Magazine

Styling Components In React — Smashing Magazine

React is a fantastic JavaScript library for building rich user interfaces. It provides a great component abstraction for organizing your interfaces into well-functioning code, but what about the look and feel of the app? There are various ways of styling React components from using stylesheets to using external styling libraries. In this article, Shedrack Akintayo will explain the cons and pros of

SAShedrack AkintayoShedrack Akintayo·May 14, 2020Frontend
Frontend — Rebuilding our tech stack for the new Facebook.com

Rebuilding our tech stack for the new Facebook.com

Facebook.com launched in 2004 as a simple, server-rendered PHP website. Over time, we’ve added layer upon layer of new technology to deliver more interactive features. Each of these new features and technologies incrementally slowed the site down and made it harder to maintain. This made it harder to introduce new experiences. Features like dark mode […]

MEMeta Engineering·May 8, 2020Frontend
Frontend — Angular + Jamstack! (Free Webinar)

Angular + Jamstack! (Free Webinar)

It's easy to think that working with Jamstack means working with some specific set of technologies. That's how it's traditionally been packaged for us. Think

GGGeoff GrahamGeoff Graham·May 5, 2020Frontend
Frontend — `lh` and `rlh` units

`lh` and `rlh` units

There's some new units I was totally unaware of from the Level 4 spec for CSS values! The lh unit is "equal to the computed value of line-height" and rlh is

CCChris Coyier·May 5, 2020Frontend