Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

553 B
Raw Blame
import { useLayoutEffect, useRef, type CSSProperties } from "react";
import { mountOpenDesignLoading } from "./openDesignLoading";

export function OpenDesignLoadingMark({ height = 40 }: { height?: number }) {
  const host = useRef<HTMLSpanElement>(null);
  useLayoutEffect(() => {
    if (host.current) return mountOpenDesignLoading(host.current);
  }, []);
  const style: CSSProperties = { display: "block", position: "relative", height, width: height * 1705 / 291, maxWidth: "100%" };
  return <span ref={host} style={style} aria-hidden="true" />;
}