3 ms·
Very nice use of web components! I wonder, could you make custom element alternatives to the .bigbang and .gravity-spot classes too? Then they could attach the
by spankalee 2y ago
Very nice use of web components!
I wonder, could you make custom element alternatives to the .bigbang and .gravity-spot classes too? Then they could attach their own resize observers without requiring the developer to do so manually.
- tinchox5 2y agoI was hesitant to develop custom elements at first because I wanted to use just CSS classes and custom variables. However, in certain cases, the developer experience is a mess without using custom elements. About your question, yes, I would make custom element alternatives.