Email or username:

Password:

Forgot your password?
19 posts total
Adam Argyle

UI Workshop

✅ scroll driven animations
✅ view transitions
✅ popovers
✅ container queries

nerdy.dev/i-put-a-workshop-on-

Adam Argyle

rebeccapurple won by a long shot 💜

voting is closed.
a new repo appears.
what's next?

nerdy.dev/a-community-css-logo

Max Duval

@argyleink I was just re-reading the MDN docs on why there will not be CSS4… what’s changed?

“There will never be a CSS3 or a CSS4; rather, everything is now just "CSS" with individual CSS modules having version numbers.”

developer.mozilla.org/en-US/do

Adam Argyle

proposed a #CSS `scroll-state` query for easily knowing which direction the user is scrolling

want it?
have additional use cases?

**give it a vote or comment!**

github.com/w3c/csswg-drafts/is

Adam Argyle

**Headless, boneless, skinless & lifeless UI**

This blog post is interested in the layered abstractions the front-end community is using so they can compose the layers themselves

nerdy.dev/headless-boneless-an

Adam Argyle

**Why isn't my **`position-try-fallback`** working in small spaces?**

Learn from my `anchor()` and `inset-area` mistakes.

nerdy.dev/why-isnt-my-position

.anchored-element {
  /* how could this innocent code bite me?! */
  inset-area: top center;
}
Adam Argyle

**Steal this `<details>` transition boilerplate CSS**

This post is in response to the most common use case I see folks trying to do with `interpolate-size`.

nerdy.dev/open-and-close-trans

Geoffrey Crofte ☕

@argyleink excellent use case. It's indeed a really common use case. Thanks for sharing it. I need to catch up on all the new CSS properties 😅

Side note, nothing alarming, but your content seems to be truncated on Android Firefox. I can't scroll horizontally or zoom out to get the content.

Adam Argyle

a customized `<select>` with:

- transitions
- anchor() with flipping
- custom content in the `<selectedoption>`
- spring easings
- scrollable picker
- sticky optgroup
- custom icons
- light/dark

nerdy.dev/custom-select-with-t

Adam Argyle

learn about #CSS `interpolate-size: allow-keywords;` from @bramus on the Chrome Blog

Animate to height or width `auto`!

developer.chrome.com/docs/css-

Stefan Eissing

@argyleink @bramus @tomayac These browser ui adventures where the mouse hero sets out to find secrets and hidden meanings left behind by the Builders…

This is a game from fifteen years ago. 🙈💁🏻‍♂️

Adam Argyle

@matthiasott is on the bad@CSSpodcast this week, sharing what they still struggle with, AND we nerd out on **how much we adore the lack of control we have in web design**.

Check it out on YouTube
youtube.com/watch?v=zSK76r1zEF

nerdy.dev/bad-at-css-with-matt

Adam Argyle

@matthiasott Matthias, thanks again for coming on, you're so cool and I really love learning from you!

Adam Argyle

**The Over-Easy Machine**

- UI layering with `anchor()`
- no more complex `position: absolute`
- keyword alignment
- intrinsically sized based on content
- pairs radically with `popover` elements

**Watch**
youtube.com/watch?v=ASb9vO3ARH

nerdy.dev/the-over-easy-mini-w

the over-easy machine from mini web machines
Adam Argyle

little teaser of some of the demo's 🙂

Darin Senneff

@argyleink Adam, is there a way for the popover to shift left/right if it extends outside the viewport edge? I see how to flip it when vertical scrolling, but what if the viewport narrows and the inline edges of the popover now touch the sides?

Adam Argyle

#CSS View Transitions during local development for a next-gen vibe

try it codepen.io/argyleink/pen/QWBgE

Adam Argyle

all I'm doing is taking the contents of the <pre> and calling document.startViewTransition() before I inject the authored styles, browser does the rest

Adam Argyle

we're 5 years into getting a customizable `<select>` 😅

Adam Argyle

we wont be calling these drop-downs anymore tho, with anchor() auto-flip it…

**might be a drop-up!**

video alt:
4 customized <select> elements shown from Chrome Canary. each has a custom picker flyout, flyout flips to stay in view, keyboard accessibility, and animation

Adam Argyle

rad Firefox Devtools feature
#CSS clip-path GUI

👀 edit any clip-path shape visually
🖱️ double click to add a point to a polygon

Mayank

@argyleink so *that's* what that icon does. i've seen it so many times but never tried clicking it 😅

M@ Bntn

@argyleink interesting! I can’t tell who is behind it though, which is weird. Wonder why no “about us” page?

Kilian Valkhof

@argyleink oh that looks very interesting! time to dig in and see how they do things.

Adam Argyle

scroll snap + scroll driven animation carousel

💡 in the mobile size it looks a lot like the iOS app switcher eh?

try it!?

codepen.io/argyleink/pen/MWMQJ

nerdy.dev/container-query-caro

Morgan Davis

@argyleink

Ironically, doesn’t work on iOS. :-)

Now, for extra credit… how can you detect a click on one of the edges of the cards in the back of the stack and have it scroll-snap to that card in the foreground position?

Adam Argyle

🆕 Mini Web Machine

**Pop n' Lock**
- `<dialog>` basics
- explanations of `top-layer`, `overlay` and `transition-behavior`
- how to `transition` a `<dialog>`

Watch on YouTube!
youtube.com/watch?v=f3N-6MzK8Z

nerdy.dev/pop-n-lock-dialog-mi

Adam Argyle

`<dialog>` examples demo:

- default
- error
- wait
- notify
- confirm
- transitioned
- light dismiss
- fully customized

codepen.io/argyleink/pen/VwJvq

a screenshot of the error dialog open
Adam Argyle

want to know when **all the transitions** on an element have **finished**? regardless of their individual durations?

I gotchu.

```js
function onTransitionsEnded(node) {
return Promise.allSettled(
node.getAnimations().map(animation => animation.finished))
}
```

function onTransitionsEnded(node) { 
  return Promise.allSettled( 
    node.getAnimations().map(animation =&gt; animation.finished))
Adam Argyle

@bramus has noted that this function should `.filter()` out animation instances if your element has both keyframe animations and transitions running 👍🏻

Go Up