Home/Frontend
Topic

Frontend

1,551 articles on Frontend.

11,834 articles
Frontend — Native CSS Masonry Layout In CSS Grid — Smashing Magazine

Native CSS Masonry Layout In CSS Grid — Smashing Magazine

There is now a specification for native CSS masonry layout, as part of the Grid Layout spec. In this article, Rachel Andrew will explain the draft spec, with examples that you can try out in Firefox Nightly. While this is a feature you won’t be able to use in production right now, your feedback would be valuable to help make sure it serves the requirements that you have for this kind of layout. So

RARachel AndrewRachel Andrew·November 2, 2020Frontend
Frontend — How To Build A GraphQL Server Using Next.js API Routes — Smashing Magazine

How To Build A GraphQL Server Using Next.js API Routes — Smashing Magazine

With this guide, Ibrahima Ndaw will teach you the basics of Next.js API Routes. He will start by explaining what they are and why API Routes are useful compared to REST or GraphQL APIs. Then, he will guide you through a step by step tutorial on how to build your very first GraphQL server with Next.js and the Github API. If you want to extend your React or Next.js skills to the server-side and be a

INIbrahima NdawIbrahima Ndaw·October 29, 2020Frontend
Frontend — Introducing Framer Motion — Smashing Magazine

Introducing Framer Motion — Smashing Magazine

Animations, when done right, are powerful. However, creating eye-catching animations with CSS can be tricky. In comes Framer Motion. With Framer Motion, you don’t need to be a CSS expert to make beautiful animations. Framer Motion provides us with production-ready animations and a low-level API we can interact with to integrate these animations into our applications.

NENefe Emadamerho AtoriNefe Emadamerho Atori·October 26, 2020Frontend
Frontend — Getting Started With Next.js — Smashing Magazine

Getting Started With Next.js — Smashing Magazine

Next.js is a React framework that is bound to ease your life as a React developer by abstracting away the common and redundant tasks (such as routing) into relatively simpler and powerful APIs. That way, you can focus on writing your apps instead of reinventing the wheel. This tutorial will be beneficial to developers who are looking to get started with Next.js or have already begun but need to fi

AAAdebiyi AdedotunAdebiyi Adedotun·October 22, 2020Frontend
Frontend — How Facebook is bringing QUIC to billions

How Facebook is bringing QUIC to billions

We are replacing the de facto protocol the internet has used for decades with QUIC, the latest and most radical step we’ve taken to optimize our network protocols to create a better experience for people on our services. Today, more than 75 percent of our internet traffic uses QUIC and HTTP/3 (we refer to QUIC […]

CWChris Wiltz·October 21, 2020Frontend
Frontend — Announcing the 2020 State of CSS Survey

Announcing the 2020 State of CSS Survey

Last year's State of CSS Survey yielded interesting results. There's the quick adoption of features, like calc() and CSS custom properties. There's also the

GGGeoff GrahamGeoff Graham·October 20, 2020Frontend
Frontend — Comparing Styling Methods in 2020

Comparing Styling Methods in 2020

Over on Smashing, Adebiyi Adedotun Lukman covers all these styling methods. It's in the context of Next.js, which is somewhat important as Next.js has some

CCChris Coyier·October 19, 2020Frontend
Frontend — Supercharge Testing React Applications With Wallaby.js — Smashing Magazine

Supercharge Testing React Applications With Wallaby.js — Smashing Magazine

Ever had to switch your focus from your editor and to your terminal to see the results of your tests? This article will introduce you to Wallaby.js — a JavaScript productivity tool that supercharges your IDE by allowing you to get real-time feedback on your JavaScript tests in your code editor even before saving the file. You will also learn how to use Wallaby.js for testing React applications. No

KOKelvin OmereshoneKelvin Omereshone·October 16, 2020Frontend
Frontend — Managing Long-Running Tasks In A React App With Web Workers — Smashing Magazine

Managing Long-Running Tasks In A React App With Web Workers — Smashing Magazine

In this tutorial, Chidi Orji is going to show you how to use the [Web Worker API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) to manage time-consuming and UI-blocking tasks in a JavaScript app by building a sample web app that leverages Web Workers. Finally, we’ll end the article by transferring everything to a React application. If you need more insights into this topic, Chi

COChidi OrjiChidi Orji·October 15, 2020Frontend
Frontend — React Form Validation With Formik And Yup — Smashing Magazine

React Form Validation With Formik And Yup — Smashing Magazine

Forms are an integral part of how users interact with our websites and web applications. Validating the data the user passes through the form is a critical aspect of our jobs as web developers. However, it doesn’t have to be a pain-staking process. In this article, Nefe Emadamerho-Atori will show you how Formik handles the state of the form data, validates the data, and handles form submission.

NENefe Emadamerho AtoriNefe Emadamerho Atori·October 12, 2020Frontend
Frontend — Using WebXR With Babylon.js — Smashing Magazine

Using WebXR With Babylon.js — Smashing Magazine

In this overview of WebXR technologies and the Babylon.js framework, we’ll embark on a journey through the past, present, and future of mixed reality both on the web and on immersive headsets. We’ll inspect the underpinnings of WebXR and the most important aspects of the WebXR Device API before turning our attention to Babylon.js, a framework for building immersive applications in JavaScript for w

PSPreston SoPreston So·October 9, 2020Frontend
Frontend — Balancing on a Pivot with Flexbox

Balancing on a Pivot with Flexbox

Let me show you a way I recently discovered to center a bunch of elements around what I call the pivot. I promise you that funky HTML is out of the question

JMJulian MerkenichJulian Merkenich·October 8, 2020Frontend
Frontend — Master TypeScript In 50 Short Lessons — Smashing Magazine

Master TypeScript In 50 Short Lessons — Smashing Magazine

Meet our new book, “TypeScript in 50 Lessons”, a deep-dive to understand what TypeScript is, how it works, and how you can make it work for you. With code walkthroughs, hands-on examples and common gotchas. 464 pages. Jump to table of contents and get the book right away.

VFVitaly FriedmanVitaly Friedman·October 7, 2020Frontend
Frontend — Full-Bleed Layout Using CSS Grid

Full-Bleed Layout Using CSS Grid

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.

JWJosh W. Comeau·October 5, 2020Frontend
Frontend — Useful Tools In Vue.js Web Development — Smashing Magazine

Useful Tools In Vue.js Web Development — Smashing Magazine

There are some tools that developers that are just getting started with Vue or sometimes, have experience building with Vue sometimes do not know exist to make development in Vue a lot easier. Today, Timi Omoyeni is going to show you a few of these libraries, what they do, and how to use them during development. This tutorial is aimed at beginners that either just started learning about Vue or alr

TOTimi OmoyeniTimi Omoyeni·October 5, 2020Frontend
Frontend — CSS Media Queries Guide

CSS Media Queries Guide

CSS Media queries are a way to target browser by certain characteristics, features, and user preferences, then apply styles based on those things.

AGAndrés GalanteAndrés Galante·October 2, 2020Frontend
Frontend — How To Use Face Motion To Interact With Typography — Smashing Magazine

How To Use Face Motion To Interact With Typography — Smashing Magazine

In this article, Edoardo Cavazza will show you how to use face recognition with Tensorflow in order to extract some information from the camera, such as the distance between the screen and user’s face or the amount of people reading the page. Then, we will pass those data to CSS in order to adapt typography and to adjust the page layout.

ECEdoardo CavazzaEdoardo Cavazza·October 2, 2020Frontend
Frontend — Understanding TypeScript Generics — Smashing Magazine

Understanding TypeScript Generics — Smashing Magazine

An introduction to the utilization of Generics in TypeScript with examples grounded in real-world use cases, such as collections, approaches to error handling, the Repository Pattern, and so on. With this article, Jamie Corkhill hopes to provide an intuitive understanding of the notion of software abstraction through Generics.

JCJamie CorkhillJamie Corkhill·October 1, 2020Frontend
Frontend — Unit Testing In React Native Applications — Smashing Magazine

Unit Testing In React Native Applications — Smashing Magazine

Unit testing has become an integral part of the software development process. It is the level of testing at which the components of the software are tested. In this article, Fortune Ikechi will show you the core principles of testing, explore various libraries for testing an application, and see how to test units (or components) of a React Native application. By working with a React Native applica

FIFortune Ikechi·September 29, 2020Frontend
Frontend — The Flavors of Object-Oriented Programming (in JavaScript)

The Flavors of Object-Oriented Programming (in JavaScript)

In my research, I've found there are four approaches to Object-Oriented Programming in JavaScript. Which methods should I use? Which one is "the best" way? Here I'll present my findings along with information that may help you decide which is right for you.

ZLZell LiewZell Liew·September 28, 2020Frontend
Frontend — A CSS Grid Framework For Shopify Collection Pages — Smashing Magazine

A CSS Grid Framework For Shopify Collection Pages — Smashing Magazine

All pages of a Shopify online store can adopt CSS Grid, but one obvious touchpoint of any e-commerce site that can benefit from a robust and clean grid layout is the collection page. In this article, Liam Griffin will be looking at how to set up a grid layout for products on your collection pages, and how to use Shopify’s section settings to create customizable options in the online store editor.

LGLiam GriffinLiam Griffin·September 22, 2020Frontend
Frontend — A Friendly Introduction to Spring Physics

A Friendly Introduction to Spring Physics

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.

JWJosh W. Comeau·September 21, 2020Frontend
Frontend — Comparing Styling Methods In Next.js — Smashing Magazine

Comparing Styling Methods In Next.js — Smashing Magazine

Among others, [Next.js](https://nextjs.org) has dubbed itself: *The React Framework for Static Websites*. But just like every other framework whose goal is to help you build what matters by abstracting common, redundant tasks, you’re often required to learn something new and opinionated. With Next.js, one of the things you need to know is how to integrate different CSS methods with its API, and th

AAAdebiyi AdedotunAdebiyi Adedotun·September 17, 2020Frontend
Frontend — What is the Value of Browser Diversity?

What is the Value of Browser Diversity?

In 2018, Rachel Nabors made the point that browser diversity is similar to biological ecosystem diversity. There are literal advantages to more diversity.

CCChris Coyier·September 15, 2020Frontend
Frontend — Interaction Media Features and Their Potential (for Incorrect Assumptions)

Interaction Media Features and Their Potential (for Incorrect Assumptions)

The Media Queries Level 4 Interaction Media Features — pointer, hover, any-pointer and any-hover — are meant to allow sites to implement different styles and functionality (either CSS-specific interactivity like :hover, or JavaScript behaviors, when queried using window.matchMedia), depending on the particular characteristics of a user’s input device.

PHPatrick H. LaukePatrick H. Lauke·September 14, 2020Frontend
Frontend — Animating React Components With GreenSock — Smashing Magazine

Animating React Components With GreenSock — Smashing Magazine

GreenSock Animation Platform (GSAP) is a set JavaScript functions that let you tween a value/attribute/CSS property over time and insert these tweens into a timeline for more complex animations. In this article, Blessing explains how GSAP plays well with the React library by integrating its functions into a React component in building an example landing page with a variety of animations.

BKBlessing KrofeghaBlessing Krofegha·September 14, 2020Frontend
Frontend — Migrating cdnjs to serverless with Workers KV

Migrating cdnjs to serverless with Workers KV

Cloudflare powers cdnjs, an open-source project that delivers popular JavaScript libraries to over 11% of websites. Today, we are excited to announce its migration to a serverless infrastructure using Cloudflare Workers and its distributed key-value store Workers KV!

TTylerTyler·September 10, 2020Frontend
Frontend — Tophatting in React Native - Shopify

Tophatting in React Native - Shopify

To provide a more convenient and painless experience, we built a tool enabling React Native developers to quickly load their peer’s work within seconds.

SEShopify Engineering·September 9, 2020Frontend
Frontend — How To Build A Blog With Next And MDX — Smashing Magazine

How To Build A Blog With Next And MDX — Smashing Magazine

In this guide, Ibrahima Ndaw will be looking at Next.js, a popular React framework that offers a great developer experience and ships with all of the features you need for production. We will also build a blog, step by step, using Next.js and MDX. Finally, we’ll cover why you would opt for Next.js instead of “vanilla” React and alternatives such as Gatsby.

INIbrahima NdawIbrahima Ndaw·September 9, 2020Frontend
Frontend — All the Ways to Make a Web Component

All the Ways to Make a Web Component

This is a neat page that compares a ton of different libraries with web components. One of the things I learned after posting "A Bit on Web Components

CCChris Coyier·September 7, 2020Frontend
Frontend — How To Automate API Testing With Postman — Smashing Magazine

How To Automate API Testing With Postman — Smashing Magazine

Postman allows you to manually test your APIs in both its desktop and web-based applications. However, it also has the ability for you to automate these tests by writing JavaScript assertions on your API endpoints. In this article, Kelvin Omereshone will learn how to write automated tests on web APIs with Postman. In order to follow along to this tutorial, you’ll need at least a fair amount of fam

KOKelvin OmereshoneKelvin Omereshone·September 7, 2020Frontend
Frontend — Building A Component Library With React And Emotion — Smashing Magazine

Building A Component Library With React And Emotion — Smashing Magazine

A component library helps to keep a design consistent across multiple projects. It ensures consistency because any changes made will propagate across the projects that make use of it. In this tutorial, Ademola Adegbuyi will show you how to build a component library, using Emotion in React to resolve inconsistencies. At the end of this piece, you should be able to create a component library that fi

AAAdemola AdegbuyiAdemola Adegbuyi·September 4, 2020Frontend
Frontend — 5 Ways to Improve Your React Native Styling Workflow - Shopify

5 Ways to Improve Your React Native Styling Workflow - Shopify

In April, we announced Shop, our digital shopping assistant that brings together the best features of Arrive and Shop Pay. The Shop app started from our React Native codebase for our previous package tracking app Arrive, with every screen receiving a complete visual overhaul to fit the new branding. While our product designers worked on introducing a whole new design system that would decide the l

SEShopify Engineering·September 2, 2020Frontend
Frontend — Everything Developers Need To Know About Figma — Smashing Magazine

Everything Developers Need To Know About Figma — Smashing Magazine

Figma is a design tool that is rapidly gaining popularity and becoming more common in companies around the world. Unlike most design software, Figma is free and browser-based so developers can easily access the full design files making the developer handoff process significantly smoother. With article, Jurn van Wissen teaches developers who have nothing but a basic understanding of design tools ev

JVJurn Van WissenJurn Van Wissen·September 2, 2020Frontend
Frontend — Building React Apps With Storybook — Smashing Magazine

Building React Apps With Storybook — Smashing Magazine

In this article, Abdulazeez Adeshina will show you what storybook is about and how to use it to build and test React components by building a simple application. He’ll start with a basic example that shows how to work with storybook, then will go ahead to create a storybook for a Table component which will hold students’ data. You should have basic knowledge of React and the use of NPM before proc

AAAbdulazeez AdeshinaAbdulazeez Adeshina·September 1, 2020Frontend