Home/Frontend
Topic

Frontend

2,065 articles on Frontend.

13,309 articles
Frontend — Libraries for SVG Drawing Animations

Libraries for SVG Drawing Animations

In 2013, Jake Archibald introduced this cool trick of animating an SVG path to look like it’s drawing itself. It’s 2020 now, and the trick is still popular.

LILinda IkechukwuLinda Ikechukwu·November 11, 2020Frontend
Frontend — ARIA in CSS

ARIA in CSS

Jeremey reacting to Sara's tweet, about using selectors instead of classes when the styling you are applying is directly related to the ARIA state.

CCChris Coyier·November 10, 2020Frontend
Frontend — JavaScript Operator Lookup

JavaScript Operator Lookup

Okay, this is extremely neat: Josh Comeau made this great site called Operator Lookup that explains how JavaScript operators work. There are some code

RRRobin RendleRobin Rendle·November 9, 2020Frontend
Frontend — Chapter 5: Publishing

Chapter 5: Publishing

Mosaic is the first browser to feature inline images, a capability that demonstrates the visual potential of the web. The first websites are experiments,

JHJay Hoffmann·November 9, 2020Frontend
Frontend — A Dive Into React And Three.js Using react-three-fiber — Smashing Magazine

A Dive Into React And Three.js Using react-three-fiber — Smashing Magazine

`react-three-fiber` is a powerful Three.js renderer that helps render 3D models and animations for React and its native applications. Today, Fortune Ikechi is going to show you how to configure and use react-three-fiber for building and displaying 3D models and animations in React and React Native applications. By building our 3D ludo dice box, you’ll learn about the basics of Three.js alongside i

FIFortune Ikechi·November 9, 2020Frontend
Frontend — Quick LocalStorage Usage in Vue

Quick LocalStorage Usage in Vue

localStorage can be an incredibly useful tool in creating experiences for applications, extensions, documentation, and a variety of use cases. I've personally

SDSarah DrasnerSarah Drasner·November 5, 2020Frontend
Frontend — How to Write Loops with Preprocessors

How to Write Loops with Preprocessors

Loops are one of those features that you don't need every day. But when you do, it's awfully nice that preprocessors can do it because native HTML and CSS

CCChris Coyier·November 4, 2020Frontend
Frontend — Additive Animations in CSS

Additive Animations in CSS

Daniel C. Wilson explains how with CSS @keyframe animations, when multiple of them are applied to an element, they do both work. But if any properties are

CCChris Coyier·November 3, 2020Frontend
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 — The CSS Custom Property Toggle Trick

The CSS Custom Property Toggle Trick

Back in July 2020, I got an email from James0x57 (I always try to refer to people by their name, but I think I get the sense they prefer to go by screen name)

CCChris Coyier·October 29, 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 — More on content-visibility

More on content-visibility

Back in August 2020, when the content-visiblity property in CSS trickled its way into Chrome browsers, Una Kravets and Vladimir Levin wrote about it and we

CCChris Coyier·October 28, 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 — Creating CSS Shapes with Emoji

Creating CSS Shapes with Emoji

CSS Shapes is a standard that lets us create geometric shapes over floated elements that cause the inline contents — usually text — around those elements to

PPreethiPreethi·October 23, 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 — xm

xm

This is a neat little HTML preprocessor from Giuseppe Gurgone. It has very few features, but one of them is HTML includes, which is something I continue to be

CCChris Coyier·October 21, 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 — Animating Number Counters

Animating Number Counters

Number animation, as in, imagine a number changing from 1 to 2, then 2 to 3, then 3 to 4, etc. over a specified time. Like a counter, except controlled by the

CLCarter LiCarter Li·October 9, 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 — Styling Complex Labels

Styling Complex Labels

Danielle Romo covers the HTML pattern you need when you have a wordy <label> with fancy styling for an <input type="radio">.

CCChris Coyier·October 5, 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