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: https://zachleat.github.io/snow-fall/demo-clown.html
Get <snow-fall> for your web site: https://github.com/zachleat/snow-fall
(Idea inspired by https://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!
@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 https://mastodon.social/@noleli/113592417873160165