Home/Frontend
Topic

Frontend

1,512 articles on Frontend.

11,739 articles
Frontend — Django Highlights: Templating Saves Lines (Part 2) — Smashing Magazine

Django Highlights: Templating Saves Lines (Part 2) — Smashing Magazine

Creating front-end code in Django with templating and server-side rendering combines the fine-grained control of handwritten HTML with the clean code and powerful features of generated pages. We explore breaking down a complex webpage into multiple templates, composing those components, and applying tags and filters to refactor a plain HTML page.

PKPhilip KielyPhilip Kiely·April 2, 2020Frontend
Frontend — Building A Web App With Headless CMS And React — Smashing Magazine

Building A Web App With Headless CMS And React — Smashing Magazine

In this article, Blessing Krofegha introduces the concept of the headless CMS, a backend-only content management system that allows developers to create, store, manage and publish the content over an API. It gives developers the power to quickly build excellent user experiences, free from the worry of its impact on the back-end business logic.

BKBlessing KrofeghaBlessing Krofegha·April 1, 2020Frontend
Frontend — Announcing “use-sound”, a React Hook for Sound Effects

Announcing “use-sound”, a React Hook for Sound Effects

By and large, using the web is a visual experience. This is in terrible contrast to mobile apps, which interact with three of our human senses (sight, sound, and touch, through haptic feedback). I just released a library to make it easy to add sound to your React app, and I make the case that you should consider using it!

JWJosh W. Comeau·March 30, 2020Frontend
Frontend — Creating a Pencil Effect in SVG

Creating a Pencil Effect in SVG

Scott Turner, who has an entire blog "Exploring procedural generation and display of fantasy maps", gets into why vector graphics seems on these surface why

CCChris Coyier·March 28, 2020Frontend
Frontend — How to use CSS Scroll Snap

How to use CSS Scroll Snap

Nada Rifki demonstrates the scroll-snap-type and scroll-snap-alignCSS properties. I like that the demo shows that the items in the scrolling

CCChris Coyier·March 27, 2020Frontend
Frontend — Migrating to React land: Gatsby

Migrating to React land: Gatsby

As our developer documentation grows so does the need for tooling. Let’s walk through how we migrated our documentation site to Gatsby to take full advantage of static generation and React.

VVictoriaVictoria·March 26, 2020Frontend
Frontend — How to Animate Text with SVG and CSS

How to Animate Text with SVG and CSS

The other day I was helping my pal Jez work on Dept. of Enthusiasm, the site for his newsletter, and I had a thought. What if we made the word “enthusiasm” in

RRRobin RendleRobin Rendle·March 25, 2020Frontend
Frontend — CSS Viewport Units

CSS Viewport Units

Deep dive from Ahmad. I like the coverage of vmin and vmax, which I think I don't reach for as often as I should.

CCChris Coyier·March 25, 2020Frontend
Frontend — Auto-Growing Inputs & Textareas

Auto-Growing Inputs & Textareas

By default, <input> and <textarea> elements don't change size based on the content they contain. In fact, there isn't any simple HTML or CSS way

CCChris Coyier·March 25, 2020Frontend
Frontend — How Should Designers Learn To Code? Git, HTML/CSS, Engineering Principles (Part 2) — Smashing Magazine

How Should Designers Learn To Code? Git, HTML/CSS, Engineering Principles (Part 2) — Smashing Magazine

In [Part 1](https://www.smashingmagazine.com/2020/03/designers-code-terminal-text-editors-part-1/), Paul explained the basics of the terminal, shared a few productivity hacks to get you started, and how to choose a code editor. In this part, he’ll continue with the topics of version control (Git), HTML and CSS, semantic code, and a brief introduction to some key engineering principles.

PHPaul HanaokaPaul Hanaoka·March 25, 2020Frontend
Frontend — Inspired Design Decisions With Otto Storch: When Idea, Copy, Art And Typography Became Inseparable — Smashing Magazine

Inspired Design Decisions With Otto Storch: When Idea, Copy, Art And Typography Became Inseparable — Smashing Magazine

In this seventh instalment of Inspired Design Decisions, Andy Clarke will explore how American art director and graphic designer Otto Storch inspires his designs for the web. How do we use CSS Shapes to go beyond basic shapes to add energy to our designs? How do we use rotations on text for extra impact? How can we use mirroring and reflections to add interest to a design? In this article, we’ll e

ACAndy ClarkeAndy Clarke·March 23, 2020Frontend
Frontend — Creating Sortable Tables With React — Smashing Magazine

Creating Sortable Tables With React — Smashing Magazine

Making your tables sortable in React might sound like a daunting task, but it doesn’t have to be too difficult. In this article, Kristofer Giltvedt Selbbekk is going to show you how to implement all you need to sort out all of your table sorting needs. By the end of this tutorial, you will have found a way to model your state, wrote a generic sorting function, and wrote a way to update what our so

KGKristofer Giltvedt SelbekkKristofer Giltvedt Selbekk·March 20, 2020Frontend
Frontend — React Suspense in Practice

React Suspense in Practice

This post is about understanding how Suspense works, what it does, and seeing how it can integrate into a real web app. We'll look at how to integrate routing

ARAdam RackisAdam Rackis·March 19, 2020Frontend
Frontend — A Practical Overview Of CSS Houdini — Smashing Magazine

A Practical Overview Of CSS Houdini — Smashing Magazine

Houdini, an umbrella term for the collection of browser APIs, aims to bring significant improvements to the web development process and the development of CSS standards in general. Frontend developers will be able to extend the CSS with new features using JavaScript, hook into CSS rendering engine and tell the browser how to apply CSS during a render process. Houdini’s browser support is improving

ABAdrian BeceAdrian Bece·March 19, 2020Frontend
Frontend — Tools for Optimizing SVG

Tools for Optimizing SVG

This is our straight-to-the-point list of SVG optimizing tools across a number of categories. They are all largely based around SVGO, but how you use it depends. There are web apps, desktop apps, apis, and even design tool add-ons.

CCChris Coyier·March 17, 2020Frontend
Frontend — Implementing Infinite Scroll And Image Lazy Loading In React — Smashing Magazine

Implementing Infinite Scroll And Image Lazy Loading In React — Smashing Magazine

HTML is getting better at providing nice APIs for implementing cool features. In this tutorial, Chidi Orji is going to show you how to use the `HTML` `Intersection Observer` API to implement infinite scrolling and image lazy loading in a React functional component. In the process, we’ll learn how to use some of React’s hooks and how to create Custom Hooks. Let’s get started!

COChidi OrjiChidi Orji·March 16, 2020Frontend
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