home.social

#csstricks — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #csstricks, aggregated by home.social.

fetched live
  1. Well it's live !

    css-tricks.com/another-stab-at

    PS. First comment is fair. Pay attention to accesibility when trying to display data a/o charts on your website.

    #css #csstricks #webdev #a11y #article

  2. Well it's live !

    css-tricks.com/another-stab-at

    PS. First comment is fair. Pay attention to accesibility when trying to display data a/o charts on your website.

    #css #csstricks #webdev #a11y #article

  3. I still find funny how people are still trying to replicate #Apple's Liquid Glass UI from iOS 26.

    Those who try to make a simple or performant implementation end up with something "not quite" Liquid Glass.

    Those who try to replicate it 1:1 end up with their computer blown up.

    #Frontend #SoftwareDevelopment #JavaScript #CSS #CSSTricks #iOS26 #iOS #iPhone

  4. I still find funny how people are still trying to replicate #Apple's Liquid Glass UI from iOS 26.

    Those who try to make a simple or performant implementation end up with something "not quite" Liquid Glass.

    Those who try to replicate it 1:1 end up with their computer blown up.

    #Frontend #SoftwareDevelopment #JavaScript #CSS #CSSTricks #iOS26 #iOS #iPhone

  5. 🚀 "Revolutionary" CSS trick: let the browser do ALL the work while you sip coffee and pretend you're still relevant. Just make sure to read the dozen policies, post guidelines, and maybe catch a safari preview or two. 🙄 #WebDevGenius
    webkit.org/blog/16929/contrast #WebDevGenius #CSSTricks #BrowserAutomation #CoffeeBreak #WebDevelopment #HackerNews #ngated

  6. 🚀 "Revolutionary" CSS trick: let the browser do ALL the work while you sip coffee and pretend you're still relevant. Just make sure to read the dozen policies, post guidelines, and maybe catch a safari preview or two. 🙄 #WebDevGenius
    webkit.org/blog/16929/contrast #WebDevGenius #CSSTricks #BrowserAutomation #CoffeeBreak #WebDevelopment #HackerNews #ngated

  7. Years ago, I saw some talk about CSS. In it, the host showed how you can take a rendered content of a <div> and display it in another div, just by referencing it, without actually copying the code or using JavaScript. Does anyone have any idea how it was called and whether it is still supported? Thanks a lot!

    #html #css #webdev #frontend #csstricks #help

  8. A little @codepen demo I made some years back: #duotone a B&W image using pure #CSS #blending (and very little code in total) codepen.io/thebabydino/pen/MWb

    With a comparison slider between the two blend modes that may be used for the effect and a picker for duotone palette base.

    Created for my Taming Blend Modes #CSSTricks article css-tricks.com/taming-blend-mo

    #blendMode #code #coding #frontend #web #dev #webDev #webDevelpment #interactive #CodePen #JS #JavaScript #slider #comparison #comparisonSlider

  9. A little @codepen demo I made some years back: #duotone a B&W image using pure #CSS #blending (and very little code in total) codepen.io/thebabydino/pen/MWb

    With a comparison slider between the two blend modes that may be used for the effect and a picker for duotone palette base.

    Created for my Taming Blend Modes #CSSTricks article css-tricks.com/taming-blend-mo

    #blendMode #code #coding #frontend #web #dev #webDev #webDevelpment #interactive #CodePen #JS #JavaScript #slider #comparison #comparisonSlider

  10. Saw this in @cassidoo newsletter and it blew my mind:

    "Text fragments are a powerful feature of the modern web platform that allows for precise linking to specific text within a web page without the need to add an anchor! This feature is complemented by the ::target-text #CSS pseudo-element, which provides a way to style the highlighted text."

    alfy.blog/2024/10/19/linking-d?

    #WebDev #frontend #design #CssTricks

  11. Saw this in @cassidoo newsletter and it blew my mind:

    "Text fragments are a powerful feature of the modern web platform that allows for precise linking to specific text within a web page without the need to add an anchor! This feature is complemented by the ::target-text #CSS pseudo-element, which provides a way to style the highlighted text."

    alfy.blog/2024/10/19/linking-d?

    #WebDev #frontend #design #CssTricks

  12. #tinyCSStip to avoid repetition and make your code more maintainable! 🌟

    If you set a stop position to a value smaller than that of the previous, it's taken to be equal to the previous!

    Want an abrupt change at 30% between aqua and blue?

    Just write `aqua 30%, blue 0`! 😎

    #CSS #gradient #cssGradient #coding #code #webDev #dev #frontend #cssTricks #webDevelopment

  13. #tinyCSStip to avoid repetition and make your code more maintainable! 🌟

    If you set a stop position to a value smaller than that of the previous, it's taken to be equal to the previous!

    Want an abrupt change at 30% between aqua and blue?

    Just write `aqua 30%, blue 0`! 😎

    #CSS #gradient #cssGradient #coding #code #webDev #dev #frontend #cssTricks #webDevelopment

  14. @cr0ybot
    😯 One of the reason I don't like #CSS anymore, I can't follow. Too much has happened during last 5 years and it seems it's not gonna stop soon. Unfortunately I still have to use it, a lot.
    I was wondering in what cases the "of" operator might be useful. Yes, makes sense here:
    `tbody > tr:nth-child(even of :not([hidden])) {...}`
    #webdesign #csstricks

  15. @cr0ybot
    😯 One of the reason I don't like #CSS anymore, I can't follow. Too much has happened during last 5 years and it seems it's not gonna stop soon. Unfortunately I still have to use it, a lot.
    I was wondering in what cases the "of" operator might be useful. Yes, makes sense here:
    `tbody > tr:nth-child(even of :not([hidden])) {...}`
    #webdesign #csstricks

  16. My little brain dump about font sizes became a talking piece on CSS Tricks.

    That escalated quickly. 😂

    css-tricks.com/font-size-limbo

    #WebDesign
    #cssTricks
    #Frontend

  17. My little brain dump about font sizes became a talking piece on CSS Tricks.

    That escalated quickly. 😂

    css-tricks.com/font-size-limbo

    #WebDesign
    #cssTricks
    #Frontend

  18. Hey hey hey CSS Tricks is actually back!!

    @geoff is going through updating the articles that need it and writing great new ones! Yessssssssss

    Go check out @csstricks - find the new ones and scroll down past a few strange test posts to find lots of recent links to fabulous older articles that have been updated 🧡

    css-tricks.com

    #CSS #CSSTricks

  19. Hey hey hey CSS Tricks is actually back!!

    @geoff is going through updating the articles that need it and writing great new ones! Yessssssssss

    Go check out @csstricks - find the new ones and scroll down past a few strange test posts to find lots of recent links to fabulous older articles that have been updated 🧡

    css-tricks.com

    #CSS #CSSTricks

  20. #tinyCSStip Avoid ugly edges for CSS gradient circles!

    ❌ DON'T 😭
    (abrupt change, no semi-transparent pixels at the edge, jagged look)
    radial-gradient(circle, #202 5em, #0000 0)

    ✅ DO 😻
    (semi-transparent edge pixels, smooth look)
    radial-gradient(5em, #202 calc(100% - 1px), #0000)

    #css #cssGradient #cssTricks #jagged #jaggedEdge #smooth #smoothEdge #code #coding #frontend #web #webDev #dev #webDevelopment

  21. #tinyCSStip Avoid ugly edges for CSS gradient circles!

    ❌ DON'T 😭
    (abrupt change, no semi-transparent pixels at the edge, jagged look)
    radial-gradient(circle, #202 5em, #0000 0)

    ✅ DO 😻
    (semi-transparent edge pixels, smooth look)
    radial-gradient(5em, #202 calc(100% - 1px), #0000)

    #css #cssGradient #cssTricks #jagged #jaggedEdge #smooth #smoothEdge #code #coding #frontend #web #webDev #dev #webDevelopment

  22. `feComposite` & `feBlend` take 2 inputs: the 2 layers we're compositing/ blending. Compositing/ blending take 2 layers and combine them in a single one using a compositing operation/ blend mode.

    `operator='out'` for `feComposite` is kinda like `mask-composite: subtract` - mask compositing is something I've detailed in this #cssTricks article css-tricks.com/mask-compositin

    #svgFilter #code #coding #frontend #gotcha #web #dev #webDev #webDevelopment #compositing #blending #alpha

  23. `feComposite` & `feBlend` take 2 inputs: the 2 layers we're compositing/ blending. Compositing/ blending take 2 layers and combine them in a single one using a compositing operation/ blend mode.

    `operator='out'` for `feComposite` is kinda like `mask-composite: subtract` - mask compositing is something I've detailed in this #cssTricks article css-tricks.com/mask-compositin

    #svgFilter #code #coding #frontend #gotcha #web #dev #webDev #webDevelopment #compositing #blending #alpha

  24. #tinySVGtip Create a barcode ▌│█║▌║▌║ with a CSS gradient pattern (only a handful of CSS declarations in total) + a super simple SVG filter!

    Also an entry for this week's #CodePenChallenge codepen.io/thebabydino/pen/abr

    The background gradients pattern was heavily inspired by "cicada stripes" from the CSS3 Patterns gallery by @leaverou projects.verou.me/css3patterns

    #CSS #SVG #filter #svgFilter #cssGradient #barcode #cssTricks #cssTip #cssTips #code #coding #frontend #webDev #webDevelopment

  25. #tinySVGtip Create a barcode ▌│█║▌║▌║ with a CSS gradient pattern (only a handful of CSS declarations in total) + a super simple SVG filter!

    Also an entry for this week's #CodePenChallenge codepen.io/thebabydino/pen/abr

    The background gradients pattern was heavily inspired by "cicada stripes" from the CSS3 Patterns gallery by @leaverou projects.verou.me/css3patterns

    #CSS #SVG #filter #svgFilter #cssGradient #barcode #cssTricks #cssTip #cssTips #code #coding #frontend #webDev #webDevelopment

  26. The .jpg image map case is... special. Most of my demos use extra pseudos/ elements and `mix-blend-mode` for compatibility reasons.

    But Safari, only browser to support `filter()` (*not* `filter`!) allows for the no extra pseudo/ element #halftone solution codepen.io/thebabydino/pen/rNg

    For reference, article on `filter()` iamvdo.me/en/blog/advanced-css

    #css #safari #filter #cssFilter #web #blending #blendMode #code #coding #CodePen #frontend #cssTricks #webDev #webDevelopment

  27. The .jpg image map case is... special. Most of my demos use extra pseudos/ elements and `mix-blend-mode` for compatibility reasons.

    But Safari, only browser to support `filter()` (*not* `filter`!) allows for the no extra pseudo/ element #halftone solution codepen.io/thebabydino/pen/rNg

    For reference, article on `filter()` iamvdo.me/en/blog/advanced-css

    #css #safari #filter #cssFilter #web #blending #blendMode #code #coding #CodePen #frontend #cssTricks #webDev #webDevelopment

  28. A `linear-gradient()` pattern coupled with a `linear-gradient()` map is what's behind this retro wave #CodePen demo codepen.io/thebabydino/pen/jOv

    And animating the map's `background-position` is how we get this progressive close/ open blinds effect mastodon.social/@anatudor/1101

    #css #filter #cssFilter #blending #blendMode #halftone #cssAnimation #code #coding #frontend #webDev #cssTricks #webDevelopment

  29. A `linear-gradient()` pattern coupled with a `linear-gradient()` map is what's behind this retro wave #CodePen demo codepen.io/thebabydino/pen/jOv

    And animating the map's `background-position` is how we get this progressive close/ open blinds effect mastodon.social/@anatudor/1101

    #css #filter #cssFilter #blending #blendMode #halftone #cssAnimation #code #coding #frontend #webDev #cssTricks #webDevelopment

  30. Pattern part may be anything small & repeating. We may also use thin blurry stripes - linear-gradient, rays - repeating-conic-gradient, rings - repeating-radial-gradient codepen.io/thebabydino/pen/qBG

    Map part may also be another type of gradient or even a .jpg codepen.io/thebabydino/pen/LYG

    #css #CodePen #halftone #filter #cssFilter #blending #blendMode #cssGradient #cssTricks #code #coding #fontend #webDev #webDevelopment

  31. Pattern part may be anything small & repeating. We may also use thin blurry stripes - linear-gradient, rays - repeating-conic-gradient, rings - repeating-radial-gradient codepen.io/thebabydino/pen/qBG

    Map part may also be another type of gradient or even a .jpg codepen.io/thebabydino/pen/LYG

    #css #CodePen #halftone #filter #cssFilter #blending #blendMode #cssGradient #cssTricks #code #coding #fontend #webDev #webDevelopment

  32. I first came up with the idea and gave a talk on it almost half a decade ago. And then I refined the topic a bit for another talk which used these slides codepen.io/thebabydino/project you may have seen me share before.

    (yes, Kreator shirt 😼 )

    #css #blendMode #blending #cssGradient #halftone #cssFilter #filter #filterEffect #code #coding #frontend #cssTricks #webDev #webDevelopment

  33. I first came up with the idea and gave a talk on it almost half a decade ago. And then I refined the topic a bit for another talk which used these slides codepen.io/thebabydino/project you may have seen me share before.

    (yes, Kreator shirt 😼 )

    #css #blendMode #blending #cssGradient #halftone #cssFilter #filter #filterEffect #code #coding #frontend #cssTricks #webDev #webDevelopment

  34. #tinyCSStip You may have seen some of my demos using this on #CodePen already. Here's the how behind it.

    Pure #CSS #halftone effect in 3 declarations:

    ✨ background layering a pattern and a map
    ✨ blend mode multiplication of the two layers
    ✨ contrast bump up to push all greys to either black or white

    #cssFilter #filter #cssTricks #cssTip #cssTips #tipsAndTricks #code #coding #frontend #wedDev #webDevelpment

  35. #tinyCSStip You may have seen some of my demos using this on #CodePen already. Here's the how behind it.

    Pure #CSS #halftone effect in 3 declarations:

    ✨ background layering a pattern and a map
    ✨ blend mode multiplication of the two layers
    ✨ contrast bump up to push all greys to either black or white

    #cssFilter #filter #cssTricks #cssTip #cssTips #tipsAndTricks #code #coding #frontend #wedDev #webDevelpment

  36. #tinyCSStip By default, gradient stop positions are evenly distributed.

    So if even distribution is what you want, just omit writing the % values explicitly.

    This makes your life easier, especially when you want to add/ remove stops.

    #CSS #cssTricks #cssGradient #code #coding #frontend #webDev #webDevelopment #codingTip

  37. #tinyCSStip By default, gradient stop positions are evenly distributed.

    So if even distribution is what you want, just omit writing the % values explicitly.

    This makes your life easier, especially when you want to add/ remove stops.

    #CSS #cssTricks #cssGradient #code #coding #frontend #webDev #webDevelopment #codingTip

  38. @SaraSoueidan almost needs a “w3fools” campaign like was run against w3schools back in the day.

    I may need to add #csstricks to excluded results domains 😔

  39. @SaraSoueidan almost needs a “w3fools” campaign like was run against w3schools back in the day.

    I may need to add #csstricks to excluded results domains 😔

  40. I totally missed that: #CSSTricks is coming back! They are looking for writers and there are already 5 new articles up!
    css-tricks.com/guest-writing-f
    #CSS #WebDev

  41. I totally missed that: #CSSTricks is coming back! They are looking for writers and there are already 5 new articles up!
    css-tricks.com/guest-writing-f
    #CSS #WebDev