import { html } from './common/tags'; declare global { interface HTMLElementTagNameMap { 'folk-space': FolkSpace; } } export class FolkSpace extends HTMLElement { static tagName = 'folk-space'; static define() { if (customElements.get(this.tagName)) return; customElements.define(this.tagName, this); } constructor() { super(); const shadowRoot = this.attachShadow({ mode: 'open' }); shadowRoot.innerHTML = html`
`; } transition() { const space = this.shadowRoot?.querySelector('.space'); space?.classList.toggle('rotate'); } }