Home/Frontend
Topic

Frontend

1,512 articles on Frontend.

11,739 articles
Frontend — Converting Plain Text To Encoded HTML With Vanilla JavaScript — Smashing Magazine

Converting Plain Text To Encoded HTML With Vanilla JavaScript — Smashing Magazine

What do you do when you need to convert plain text into formatted HTML? Perhaps you reach for Markdown or manually write in the element tags yourself. Or maybe you have one or two of the dozens of online tools that will do it for you. In this tutorial, Alexis Kypridemos picks those tools apart and details the steps for how we can do it ourselves with a little vanilla HTML, CSS, and JavaScript.

AKAlexis KypridemosAlexis Kypridemos·April 17, 2024Frontend
Frontend — CSS in React Server Components

CSS in React Server Components

You can’t make an omelette without cracking a few eggs, and when the core React team unveiled their vision for the future of React, some of my favourite libraries got scrambled 😅. In this blog post, we’re going to explore the compatibility issues between React Server Components and CSS-in-JS libraries like styled-components. You’ll understand what the issue is, what the options are, and what’s on

JWJosh W. Comeau·April 15, 2024Frontend
Frontend — Sliding 3D Image Frames In CSS — Smashing Magazine

Sliding 3D Image Frames In CSS — Smashing Magazine

Creating 3D effects in CSS isn’t an entirely new concept, but typical approaches use additional elements in the markup and pseudo-elements in the styles to pull it off. Temani Afif applies 3D effects and sliding transitions to a single `` using clever CSS techniques that demonstrate advanced, modern styling practices.

TATemani AfifTemani Afif·April 12, 2024Frontend
Frontend — We've added JavaScript-native RPC to Cloudflare Workers

We've added JavaScript-native RPC to Cloudflare Workers

Cloudflare Workers now features a built-in RPC (Remote Procedure Call) system for use in Worker-to-Worker and Worker-to-Durable Object communication, with absolutely minimal boilerplate. We've designed an RPC system so expressive that calling a remote service can feel like using a library

CCloudflare·April 5, 2024Frontend
Frontend — Infinite-Scrolling Logos In Flat HTML And Pure CSS — Smashing Magazine

Infinite-Scrolling Logos In Flat HTML And Pure CSS — Smashing Magazine

Remember the HTML `` element? It’s deprecated, so it’s not like you’re going to use it when you need some sort of horizontal auto-scrolling feature. That’s where CSS comes in because it has all the tools we need to pull it off. Silvestar Bistrović demonstrates a technique that makes it possible with a set of images and as little HTML as possible.

SBSilvestar BistrovicSilvestar Bistrovic·April 2, 2024Frontend
Frontend — The Power of :has() in CSS

The Power of :has() in CSS

Hey all you wonderful developers out there! In this post we are going to explore the use of :has() in your next web project. :has() is relatively newish but

CDChris DeMarsChris DeMars·March 29, 2024Frontend
Frontend — Bringing HDR photo support to Instagram and Threads

Bringing HDR photo support to Instagram and Threads

Meta’s family of apps serves trillions of image download requests every day. And if you’re into high-quality images, you’ve probably noticed that Instagram and Threads have added support for high dynamic range (HDR) photos. Now people on Threads and Instagram can upload and share images that are more true-to-life, with the full color and range […]

CWChris Wiltz·March 26, 2024Frontend
Frontend — Modern CSS Tooltips And Speech Bubbles (Part 2) — Smashing Magazine

Modern CSS Tooltips And Speech Bubbles (Part 2) — Smashing Magazine

In Part 1 of this series, Temani Afif explored different CSS techniques to create tooltip shapes. The main challenge was to rely on a single element and create optimized code that could easily be controlled using CSS variables to update the size, shape, and position of the tail. In this second part, you are going explore more shapes.

TATemani AfifTemani Afif·March 8, 2024Frontend
Frontend — Modern CSS Tooltips And Speech Bubbles (Part 1) — Smashing Magazine

Modern CSS Tooltips And Speech Bubbles (Part 1) — Smashing Magazine

Tooltips are a very common pattern used in CSS for years. There are a lot of ways to approach tooltips in CSS, though some evoke headaches with all the magic numbers they require. In this article, Temani Afif presents modern techniques to create tooltips with the smallest amount of markup and the greatest amount of flexibility.

TATemani AfifTemani Afif·March 1, 2024Frontend
Frontend — How To Center a Div

How To Center a Div

Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something else? Let's dig into it.

JWJosh W. Comeau·February 13, 2024Frontend
Frontend — How To Draw Radar Charts In Web — Smashing Magazine

How To Draw Radar Charts In Web — Smashing Magazine

A radar chart — also commonly called a spider chart — is yet another way to visualize data and make connections. Radar charts are inherently geometric, making them both a perfect fit and fun to make with CSS, thanks to the `polygon()` function. Read along as Preethi Sam demonstrates the process and sprinkles it with a pinch of JavaScript to make a handy, reusable component.

PSPreethi SamPreethi Sam·February 9, 2024Frontend
Frontend — CSS Blurry Shimmer Effect — Smashing Magazine

CSS Blurry Shimmer Effect — Smashing Magazine

Taking inspiration from shadows, author Yair Even Or creates the same sort of thing, only with a blurring effect in place of the shadow. Read along for a step-by-step explanation of how it comes together using a combination of masks, gradients, and the good ol’ `backdrop-filter` property.

YEYair Even OrYair Even Or·January 25, 2024Frontend
Frontend — The View Transitions API And Delightful UI Animations (Part 2) — Smashing Magazine

The View Transitions API And Delightful UI Animations (Part 2) — Smashing Magazine

The View Transitions API is a new — but game-changing — feature that allows us to do the types of reactive state-based UI and page transitions that have traditionally been exclusive to JavaScript frameworks. In the second half of this mini two-part series, Adrian Bece expands on the demos from the first article to demonstrate how the View Transitions API can be used to transition not just elements

ABAdrian BeceAdrian Bece·January 2, 2024Frontend
Frontend — Exploring the Animation Landscape of 2023 Wrapped

Exploring the Animation Landscape of 2023 Wrapped

Each year, we aim to elevate the Spotify Wrapped experience for our users, crafting captivating data stories and pushing the boundaries of what the experience delivers to users. Since 2019, Spotify Wrapped has been available through the Spotify app on both Android and iOS. In 2023, we embarked on a path to share the joy of Wrapped with a larger global audience with a complementary web experience.

ZTZela Taino·January 1, 2024Frontend
Frontend — Making Sense Of “Senseless” JavaScript Features — Smashing Magazine

Making Sense Of “Senseless” JavaScript Features — Smashing Magazine

JavaScript may be the most popular client-side language in the world, but it’s far from perfect and not without its quirks. Juan Diego Rodriguez examines several “absurd” JavaScript eccentricities and explains how they made it into the language as well as how to avoid them in your own code.

JDJuan Diego RodriguezJuan Diego Rodriguez·December 28, 2023Frontend
Frontend — The View Transitions API And Delightful UI Animations (Part 1) — Smashing Magazine

The View Transitions API And Delightful UI Animations (Part 1) — Smashing Magazine

The View Transitions API is a new — but game-changing — feature that allows us to do the types of reactive state-based UI and page transitions that have traditionally been exclusive to JavaScript frameworks. In the first part of this mini two-part series, Adrian Bece thoroughly explains why we need the API and demonstrates its basic usage.

ABAdrian BeceAdrian Bece·December 22, 2023Frontend
Frontend — Our Journey Migrating to AWS IMDSv2

Our Journey Migrating to AWS IMDSv2

We are heavy users of Amazon Compute Compute Cloud (EC2) at Slack — we run approximately 60,000 EC2 instances across 17 AWS regions while operating hundreds of AWS accounts. A multitude of teams own and manage our various instances. The Instance Metadata Service (IMDS) is an on-instance component that can be used to gain an…

AGArchie Gunasekara·December 12, 2023Frontend
Frontend — Getting Started with React Native Skia - Shopify

Getting Started with React Native Skia - Shopify

Skia is a cross-platform 2D graphics library that provides a set of drawing primitives which run on iOS, Android, macOS, Windows, Linux, and the browser. Over the past two years, Shopify Engineering has sponsored development of the @shopify/react-native-skia library that exposes Skia functionality to React Native. The React Native (RN) Skia community is one of the most vibrant and interesting in t

SEShopify Engineering·December 4, 2023Frontend
Frontend — CSS Responsive Multi-Line Ribbon Shapes (Part 2) — Smashing Magazine

CSS Responsive Multi-Line Ribbon Shapes (Part 2) — Smashing Magazine

In Part 1 of the series, Temani Afif demonstrated how creating ribbon patterns in CSS has evolved with the availability of new CSS features. In this second installment of this brief two-part series, we look at two additional ribbon variations that introduce techniques for masking a repeated background gradient in CSS.

TATemani AfifTemani Afif·November 22, 2023Frontend
Frontend — An Interactive Guide to CSS Grid

An Interactive Guide to CSS Grid

CSS Grid is an incredibly powerful tool for building layouts on the web, but like all powerful tools, there's a significant learning curve. In this tutorial, we'll build a mental model for how CSS Grid works and how we can use it effectively. I'll share the biggest 💡 lightbulb moments I've had in my own learning journey.

JWJosh W. Comeau·November 21, 2023Frontend
Frontend — The foundations of the Frontend Cloud

The foundations of the Frontend Cloud

An introduction to the underlying infrastructure of the Frontend Cloud: Part 1 of the developer's guide to a future-proofed stack for the modern frontend.

VVercel·November 21, 2023Frontend
Frontend — CSS Responsive Multi-Line Ribbon Shapes (Part 1) — Smashing Magazine

CSS Responsive Multi-Line Ribbon Shapes (Part 1) — Smashing Magazine

Ribbons have been used to accent designs for many years now. But, the way we approach them in CSS has evolved with the introduction of newer features. In this article, Temani Afif combines background and gradient tricks to create ribbon shapes in CSS that are not only responsive but support multi-line text and are easily adjustable with a few CSS variables.

TATemani AfifTemani Afif·November 15, 2023Frontend
Frontend — Creating Accessible UI Animations — Smashing Magazine

Creating Accessible UI Animations — Smashing Magazine

Animation and accessibility are often seen as two separate powers at odds with one another. How is it possible to strike a balance between elements that move and the possible negative effects they expose to users who are sensitive to motion? Oriana García explains how her team at Mercado Libre tackled the challenge by creating guiding principles for applying animation to user interfaces and incorp

OGOriana GarciaOriana Garcia·November 10, 2023Frontend
Frontend — Headless Component: a pattern for composing React UIs

Headless Component: a pattern for composing React UIs

As React UI controls become more sophisticated, complex logic can get intertwined with the visual representation. This makes it hard to reason about the behavior of the component, hard to test it, and necessary to build similar components that need a different look. A Headless Component extracts all non-visual logic and state management, separating the brain of a component from its looks.

JQJuntao QIU | 邱俊涛·November 7, 2023Frontend
Frontend — Addressing Accessibility Concerns With Using Fluid Type — Smashing Magazine

Addressing Accessibility Concerns With Using Fluid Type — Smashing Magazine

The CSS `clamp()` function is often paired with viewport units for “fluid” font sizing that scales the text up and down at different viewport sizes. As common as this technique is, several voices warn that it opens up situations where text can fail WCAG Success Criterion 1.4.4, which specifies that text should scale up to at least 200% when the user’s browser reaches its 500% maximum zoom level. M

MBMaxwell BarvianMaxwell Barvian·November 7, 2023Frontend
Frontend — How Meta built Threads in 5 months

How Meta built Threads in 5 months

In about five short months, a small team of engineers at Meta took Threads, the new text-based conversations app, from from an idea to the most successful app launch of all time, pulling in over 100M users in its first five days. But this achievement wouldn’t have been possible without Meta’s existing systems and infrastructure. […]

CWChris Wiltz·November 6, 2023Frontend
Frontend — How To Animate Along A Path In CSS — Smashing Magazine

How To Animate Along A Path In CSS — Smashing Magazine

CSS loaders and progress indicators are some of the most widely used examples in tutorials and documentation. In this article, Preethi demonstrates an approach using animated custom properties, a conic gradient, CSS `offset`, and emoji to create the illusion of a scooter racing along a donut track.

PSPreethi SamPreethi Sam·October 18, 2023Frontend
Frontend — js13kGames 2023 winners 🏆

js13kGames 2023 winners 🏆

The twelfth annual js13kGames coding competition, challenging participants to create games in 13kB or less of JavaScript in a month, just wrapped up. This post highlights the top thirteen entries.

LRLee ReillyLee Reilly·October 13, 2023Frontend