Una 🇺🇦

31.1K posts

Una 🇺🇦 banner
Una 🇺🇦

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
Una 🇺🇦
Una 🇺🇦@Una·
OoooOOooh! Guess what! As of Chrome 149, shape() works in shape-outside! So you can really *shape* your UI's 😉* rect() and xywh() are also supported for shape-outside in Chrome 149 *(just let me have my Mom joke)
English
17
66
557
40.4K
Una 🇺🇦
Una 🇺🇦@Una·
@ui_pro @bramus All of a sudden? 👀 Have you been following along for the past 5 years my friend?
English
1
0
1
62
Una 🇺🇦 retweetledi
Eduard Bodak
Eduard Bodak@eduardbodak·
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
21
51
1.2K
65.4K
Una 🇺🇦 retweetledi
Jakub Krehel
Jakub Krehel@jakubkrehel·
If elements ever shift unexpectedly by a few pixels during an animation and you can’t figure out why, try using the `will-change` CSS property. It promotes the element to its own GPU compositing layer. Use it sparingly though, since overusing it can hurt performance.
English
24
49
1.6K
135.3K
Una 🇺🇦 retweetledi
Victor
Victor@vponamariov·
The power of @ property Without it → CSS treats --progress as text → no animation With it → CSS knows it's percentage → smooth animation
English
5
25
335
20.4K
Alex Kostyniuk
Alex Kostyniuk@kostyniuk00·
@Una Looks pretty good, when do we get 149 in stable? 🥲
English
1
0
0
235
Una 🇺🇦 retweetledi
Seb ⚛️ ThisWeekInReact.com
Seb ⚛️ ThisWeekInReact.com@sebastienlorber·
👀 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
Seb ⚛️ ThisWeekInReact.com tweet media
Hacker News 20@betterhn20

The end of responsive images piccalil.li/blog/the-end-o… (news.ycombinator.com/item?id=478754…)

English
10
132
1.5K
115.5K
Una 🇺🇦 retweetledi
Bharat Kara
Bharat Kara@KaraBharat·
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
5
36
604
26.1K
Bart ⚡
Bart ⚡@bzagrodzki·
Math loaders are coming to Loading UI 🔥 if you have idea for any loader, spinner or animation just let me know and I'll ship it to registry 🫡
English
70
121
2.2K
116.1K
Una 🇺🇦
Una 🇺🇦@Una·
For what it’s worth, I’m *super* happy to rename the default branch structure of “master” to “main” and I hope we can all do this together as a community with @github leading the charge by implementing in their product moving forward 🙂
English
313
241
1.4K
0
Una 🇺🇦 retweetledi
Orion Reed
Orion Reed@OrionReedOne·
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
33
142
1.8K
103.5K