Well, if you’ve watched my #HTTP203 episode on Viewports () you know that there currently is a difference between browsers on how they handle the Virtual Keyboard.
Dec 30, 2021 • 6 tweets • 3 min read
At the start of 2021, I discovered CSS @scroll-timeline, a way to link CSS Animations to the scroll offset of a scroll container.
Seems fitting to close off the year with a final demo: reverse-scrolling columns.
🧵
In browsers that support CSS Scroll-Timeline (which is only Chromium with “Experimental Web Platform Features” enabled for now) the effect is achieved using nothing but CSS.
Dec 27, 2021 • 12 tweets • 4 min read
🔥 CSS Features to start learning, as I expect them to ship in all browsers in 2022:
1. Container Queries 2. Cascade Layers 3. Color Functions 4. Viewport Units 5. :has() 6. Overscroll Behaviour 7. Subgrid 8. Accent Color 9. Media Query Ranges
1. Container Queries allow authors to style elements according to the size or appearance of a container. For size-based container queries, this is similar to a @media query, except that it will evaluate against the size of a parent container instead of the viewport.
Jun 8, 2021 • 11 tweets • 6 min read
🔥🔥🔥
`document.documentTransition` is a new experimental API in @ChromiumDev that allows you to create transitions between two different visual frames.
Let's dig in … 🧵
@ChromiumDev In this example you see the API transition between the frame with the avatar and the frame with the info modal. The transition — including "slide up" animation — is handled by the API/browser.