Add my Designely scene to this React app.
- 1.Export, Download React, and save the file as
`src/YOUR_SCENE_ID.tsx`. The runtime and the scene are inside it: nothing to install. - 2.Render the scene where it should appear:
import Scene from "./YOUR_SCENE_ID";
export default function App() {
return <Scene style={{ width: "100%" }} />;
}
Add my Designely scene to this web page.
- 1.Export, Embed code, and use its values for
`YOUR_SCENE_ID` and `YOUR_HOST`. - 2.Paste this where the scene should appear:
<!-- Designely Studio embed -->
<div data-designely-embed="YOUR_SCENE_ID"
style="width:100%;aspect-ratio:16/9"></div>
<script src="https://YOUR_HOST/embed/v1.js" async></script>
Publish my Designely scene as one HTML file.
- 1.Export, Download HTML, and upload the file to any static host.
- 2.The file looks like this:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My scene</title>
</head>
<body style="margin:0;background:#000">
<div id="scene" style="width:100vw;height:100vh"></div>
<!-- runtime and scene data are inlined: one file, no network -->
<script>/* ... */</script>
</body>
</html>
Add my Designely scene to this Framer page.
- 1.Add an Embed component and choose HTML.
- 2.Paste this into it:
<!-- Designely Studio embed, fitted to the Framer frame -->
<div data-designely-embed="YOUR_SCENE_ID"
data-designely-fit="frame"
style="width:100%;height:100%"></div>
<script src="https://YOUR_HOST/embed/v1.js" async></script>