RegularElements
artydev
Posted on October 16, 2020
Quote from site: "Everything I love about Custom Elements made available for any node, and through CSS selectors.
No Custom Elements, no Shadow DOM, and no polyfills are needed."
You can test it here : RegElt
<button class="hi-five">
Hi Five One
</button>
<button class="hi-five">
Hi Five Two
</button>
import {define} from 'regular-elements';
define('.hi-five', {
connectedCallback() {
this.innerHTML = ' 🖐 ' + this.innerHTML;
}
});
💖 💪 🙅 🚩
artydev
Posted on October 16, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.