social.tchncs.de is one of the many independent Mastodon servers you can use to participate in the fediverse.
A friendly server from Germany – which tends to attract techy people, but welcomes everybody. This is one of the oldest Mastodon instances.

Administered by:

Server stats:

3.8K
active users

#csstricks

0 posts0 participants0 posts today

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

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

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?

skillivo.in/css-variables-key-

Are you ready to take your CSS skills to the next level?
Discover the magic of CSS Variables and how they can revolutionize your web design process! 💻

In this blog post, you'll learn:
✅ What CSS Variables are and why they matter
✅ How to implement them in your projects
✅ Tips and tricks to maximize their potential
✅ Real-world examples to inspire your designs

Don't miss out on this game-changing technique that will make your stylesheets more dynamic, maintainable, and scalable! 🚀

Read Full Article - skillivo.in/css-variables-key-

Continued thread

`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

#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
Continued thread

Animating a custom property* that the gradients used for the effect depend on can also produce cool effects, like in codepen.io/thebabydino/pen/wvR - also an entry for this week's #CodePenChallenge😎

And a solution to mastodon.social/@anatudor/1112

*not yet in Firefox stable, only in Nightly mastodon.social/@anatudor/1121