Una 🇺🇦
31.1K posts

Una 🇺🇦
@Una
Building the web you build on @GoogleChrome ✨🎨 Web Experience DevRel Lead 🦄 @csswg + @openuicg. #CSSPodcast host 🎬 https://t.co/J9Y8U6Bz4f
Brooklyn, NY Katılım Kasım 2008
1.4K Takip Edilen88.2K Takipçiler

...And that means it can also be pulled into the web and made interactive with Threejs ( play with it yourself at cameronfoxly.github.io/cooking-test/)...
English

In the age of AI slop, some of us are still making things by hand, I promise ❤️ Octocat for the new GitHub Copilot App was modeled, rigged, and animated in Blender...
GitHub@github
Cooking up something new 🧑🍳 Join the waitlist for early access to technical preview of the GitHub Copilot app 👇 gh.io/github-copilot…
English

@kostyniuk00 @bramus It's a WIP! Our engineers are working on it, and there are some open issues too.
English

Really fun demo of the text-fit property in multiple directions!
This feature is landing in Chrome 150, and enables you to adjust the text-size to fit the width of its containing block.
One of the many new web features @bramus and I will highlight in our upcoming I/O talk next week! 😁
(though I like this demo way more than the simple one I built!)
Ollie Williams@hypeddev
New CSS text-fit property chromestatus.com/feature/510414…
English
Una 🇺🇦 retweetledi

007/100 Buttons.
This button was way more complex than I first thought.
I love the page transition on the Truus site that @codebydennis and @JordanGilroy worked on.
So I wanted to use that drawing SVG Path idea somehow and fit it into a button. In best case with a mask effect.
The idea was to have an SVG path in the background that fills the button. At the same time, this path should also be used as a mask to reveal the differently colored text.
The SVG should also be replaceable and work with other SVGs.
For the path animation, I can use the DrawSVGPlugin from @greensock.
Sounds like a solid plan.
I built the button so far, and it worked great in Chrome and Firefox. In Safari, nope.
I used an SVG mask that I referenced through CSS. But Safari can’t handle that properly when the path inside the mask is animated, so the animation lags.
There was no simple solution for that. At least I didn’t find something. So I had to rebuild the button in another way.
What I found was that the SVG mask animation works in Safari when the mask is placed on the desired element inside the SVG.
That’s where foreignObject comes in, it allows you to use normal HTML elements inside an SVG. Using that, I rebuilt the hover text inside the SVG.
I then referenced the mask on the foreignObject with a bit of JavaScript.
And it worked!
The button’s structure looks more complicated than I wanted it to be, but that happens quite often when you need to make something work across different browsers 😃
Crafting 100 Buttons with @osmosupply
⏳ Total time: 96h
English
Una 🇺🇦 retweetledi
Una 🇺🇦 retweetledi
Una 🇺🇦 retweetledi

👀 Responsive <img> getting simpler
You don't need to add "manual breakpoints" anymore
Just add sizes="auto" to lazy-loaded images and the browser will figure out the appropriate size of your srcset
Now in all latest browsers
Screenshot: how to use as progressive enhancement

Hacker News 20@betterhn20
The end of responsive images piccalil.li/blog/the-end-o… (news.ycombinator.com/item?id=478754…)
English
Una 🇺🇦 retweetledi

Container scroll-state queries let you apply styles to elements based on the container's scroll state — stuck, snapped, or scrollable👇
.section-header {
...
container-type: scroll-state;
container-name: sticky-hd;
}
@ container sticky-hd scroll-state(stuck: top) {
...
}
#CSS
English

@WallpaperKeith @github Now that everyone is used to it and it’s second nature? No
English
Una 🇺🇦 retweetledi

The nascent HTML-in-Canvas API is exciting to me not for flashy effects, but because it extends the semantics that the DOM can (tractably) represent — tiny example: it's possible to show an element in multiple places, cheaply, under arbitrary transforms.
folkjs.org/demos/html-in-…
English

Great post on scroll-driven animation from the web animations master himself, @JoshWComeau
joshwcomeau.com/animation/scro…
English






