zachleat.com is one of the many independent Mastodon servers you can use to participate in the fediverse.

Server stats:

1
active users

Added a `text` attribute to the <snow-fall> web component (v1.0.3+). Now you can add any emoji character you might want (maybe ❄️, maybe a 🤡)

Demo: zachleat.github.io/snow-fall/d

Get <snow-fall> for your web site: github.com/zachleat/snow-fall

(Idea inspired by techarseholeoftheyear.com/)

@zachleat I love custom attributes! I had someone suggest that one-word attributes are more vulnerable to future web platform collisions than two-or-more word ones (like WC naming conventions themselves).

ie instead of `[text]`, something like `[sf-text]` or `[icon-text]`

I'm not consistent with this myself, but thought I'd mention it as a point of discussion!

Zach Leatherman :11ty:

@cferdinandi ooh, that’s a good idea! I will keep that in mind for next time!

@zachleat @cferdinandi a few weeks ago I suggested being consistent about namespacing custom attributes like that. It seemed to be a nonstarter with your colleague (who I won’t drag in here :) ) for the very reasonable reason that it can get very verbose mastodon.social/@noleli/113592

MastodonNoah Liebman (@noleli@mastodon.social)@leaverou@front-end.social I’m not strict about it, but if I were building a component library for public consumption I might namespace my attributes in order to do that. `wa-*`

@noleli @zachleat I’m not convinced a one or two letter prefix is verbose. It’s at the very least shorter than data attributes.