INNER CODE UNIT · JavaScript

splash

NeoAxis/NeoAxisEngine · Project/Sources/NeoAxis.Player.Web/wwwroot/main.js:182

const splash = (() =>
{
	const el = document.createElement("div");
	el.style.cssText =
		"position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;" +
		"background:#000000;pointer-events:none;opacity:0;transition:opacity .5s ease-out;";

	const img = document.createElement("img");
	img.src = new URL("./Assets/NeoAxisLogo_DarkBackground.png", import.meta.url).href;
	img.draggable = false;
	img.style.cssText = "max-width:30vw;max-height:30vh;object-fit:contain;user-select:none;";
	el.appendChild(img);
	document.body.appendChild(el);

	setTimeout(() =>
	{
		el.style.opacity = "1";
		el.style.transition = "opacity 1s ease-in";

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…