<mr-app>

The <mr-app> component serves as the foundational building block of an application using MRjs.

Definition and Usage

The <mr-app> tag has optional data-attributes:

Example

Hello world! This is an mr-app mr-panel { display: flex; flex-flow: column nowrap; align-items: center; justify-content: center; width: 100vw; height: 100vh; gap: 0.5rem; font-family: Helvetica; border-radius: unset; } mr-text { letter-spacing: 1px; line-height: 120%; } .title { font-size: 150%; font-weight: bold; } #logo { width: 200px; height: 200px; z-index: 70; scale: 0.15; } function rotate(timestamp) { t = timestamp / 2000; let rx = -Math.cos(t) * 90; let ry = Math.cos(t) * 90; let rz = Math.cos(t) * 180; document.querySelector("#logo").dataset.rotation = rx + " " + ry + " " + rz; window.requestAnimationFrame(rotate); }; window.requestAnimationFrame(rotate);