Search

Nalezeno "MVP": 1123

How to Create a Shrinking Header on Scroll Without JavaScript


Imagine a header of a website that is nice and thick, with plenty of padding on top and bottom of the content. As you scroll down, it shrinks up on itself, reducing some of that padding, making more screen real … The post How to Create a Shrinking Header on Scroll Without JavaScript appeared...

Maximally optimizing image loading for the web in 2021


Malte Ubl’s list for: 8 image loading optimization techniques to minimize both the bandwidth used for loading images on the web and the CPU usage for image display. Fluid width images in CSS, not forgetting the height and width attributes … The post Maximally optimizing image...

The web didn’t change; you did


I love this piece from Remy Sharp where he argues that the web didn’t get more complicated over the last 20 years, despite what we might think: Web development did not change. Web development grew. There are more options now, … The post The web didn’t change; you did appeared first...

Netlify


High five to Netlify for the ❥ sponsorship. Netlify is a great place to host your static (or not-so-static!) website because of the great speed, DX, pricing, and feature set. I’ve thought of Netlify a bunch of times just in … The post Netlify appeared first on CSS-Tricks. You...

Using AbortController as an Alternative for Removing Event Listeners


The idea of an “abortable” fetch came to life in 2017 when AbortController was released. That gives us a way to bail on an API request initiated by fetch() — even multiple calls — whenever we want. Here’s a super … The post Using AbortController as an Alternative for Removing Event Listeners...

Beautiful accessibility with Floating Focus


Imagine if your :focus styles animated from element to element as you tab through a site. Like the focus ring up and flew across the page to the next element. The spirit of it is similar to smooth scrolling: it’s … The post Beautiful accessibility with Floating Focus appeared first...

Front-End Dissatisfaction (and Backing Off)


Asko Nõmm reached a breaking point with front end: I want to have a personal life and not have to spend my nights reading up on some new flavour of *.js in fear that if I don’t I would soon … The post Front-End Dissatisfaction (and Backing Off) appeared first on CSS-Tricks. You...

Don’t put pointer-events: none on form labels


Bruce Lawson with the tip of the day, warning against the use of pointer-events: none on forms labels. We know that pointer-events is used to change how elements respond to click, tap, hover, and active states. But it apparently borks … The post Don’t put pointer-events: none on form labels...

Responsible Web Applications


Joy Heron bought a cool domain name and published an article there: Luckily, with modern HTML and CSS, we can create responsive and accessible web apps with relative ease. In my years of doing software development, I have learned some … The post Responsible Web Applications appeared first...

Reconciling Editor Experience and Developer Experience in the CMS


Components are great, aren’t they? They are these reusable sources of truth that you can use to build rock-solid front-ends without duplicating code. You know what else is super cool? Headless content management! Headless content management system (CMS) products offer … The post Reconciling...

The Devil’s Albatross


Nils Binder talks about a technique for spacing between two elements. Picture a header on a large screen with a logo in the upper left and nav in the upper right. Then a small screen, when they can no longer … The post The Devil’s Albatross appeared first on CSS-Tricks. You can support...

Is CSS float deprecated?


An interesting conversation came up at work the other day: Should we use the CSS float property now that we have CSS Grid and Flexbox? The short answer No! Well, mostly. I’d only use it today for wrapping text around … The post Is CSS float deprecated? appeared first on CSS-Tricks. You...

Progressive Web Apps in 2021


Maximiliano Firtman has a look at PWAs this year, including trying to get a bead on how widespread they are: At the end of 2020, approximately 1% of websites included a Service Worker, and 2.2% had an installable Web App … The post Progressive Web Apps in 2021 appeared first...

WordPress 5.7: Big ol’ jQuery Update


WordPress core is making the jump from jQuery 1.12.4 to jQuery 3.5.1! This is a big deal for lots of reasons — like modern features, better DX, and security improvements to name a few. Right now, the plan is to … The post WordPress 5.7: Big ol’ jQuery Update appeared first...

How to Build a GraphQL API for Text Analytics with Python, Flask and Fauna


GraphQL is a query language and server-side runtime environment for building APIs. It can also  be considered as the syntax that you write in order to describe the kind of data you want from APIs. What this means for you … The post How to Build a GraphQL API for Text Analytics with...

iframe feedback


What if an <iframe had within it another <iframe of the exact same source? Inception, as they say. Baptise Crespy does this all-important research in the name of art and science. Turns out browsers are smart enough to not … The post iframe feedback appeared first on CSS-Tricks. You...

HTML Video Sources Should Be Responsive


Scott Jehl doesn’t mince words here: Removing media support from HTML video was a mistake. It means that for every video we embed in HTML, we’re stuck with the choice of serving source files that are potentially too large or … The post HTML Video Sources Should...

:focus-visible Support Comes to Firefox


Look at that! The :focus-visible pseudo-selector is now supported in Firefox, as of version 85 which shipped yesterday. I had to rush over to the MDN Docs just to confirm, and yep, the :focus-visible page has been updated to … The post :focus-visible Support Comes to Firefox appeared first...

How to Favicon in 2021


I always appreciate someone looking into and re-evaluating the best practices of something that literally every website needs and has a complex set of requirements. Andrey Sitnik has done that here with favicons. The final suggestion: <link rel="icon" href="/favicon.ico" … The post...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace