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 first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/how-to-create-a-shrinking-header-on-scroll-without-javascript/

4y | CSS tricks
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 on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://remysharp.com/2021/02/11/the-web-didnt-change-you-did

4y | CSS tricks
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 can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/netlify-2/

4y | CSS tricks
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 appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/using-abortcontroller-as-an-alternative-for-removing-event-listeners/

4y | CSS tricks
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 on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://github.com/Q42/floating-focus-a11y

4y | CSS tricks
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 can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/front-end-dissatisfaction-and-backing-off/

4y | CSS tricks
Weekly Platform News: WebKit autofill, Using Cursor Pointer, Delaying Autoplay Videos

In this week’s roundup, WebKit’s prefixed autofill becomes a standard, the pointer cursor is for more than just links, and browsers are jumping on board to delay videos set to autoplay until they’re in view… plus more! Let’s jump right …

The post Weekly Platform News: WebKit autofill, Using Cursor Pointer, Delaying Autoplay Videos appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/weekly-platform-news-w

4y | CSS tricks
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 on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://responsibleweb.app/

4y | CSS tricks
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 appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://www.brucelawson.co.uk/2021/dont-put-pointer-events-none-on-form-labels/

4y | CSS tricks
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 CSS-Tricks by being an MVP Supporter.

https://9elements.com/blog/the-devils-albatros-an-algorithmic-layout-technique/

4y | CSS tricks

Căutare