Recipe · square · 1 layers
Loading loop
Seamless loading / waiting / processing loop for splash screens, empty states and "generating…" moments.

Motions in this recipe
Use it in Remotion, React or HTML
CLI
# render the recipe to out/loading-loop.mp4 (run in the library folder)
node cli/mgl.mjs recipe loading-loop
# copy just this recipe's source into a Remotion / React project
node cli/mgl.mjs add loading-loop --to ../my-app/srcReact
import {MotionMix} from 'opus-motion-library/web';
<MotionMix recipe="loading-loop"
playOnView
/>HTML
<script src="opus-motion.element.js" defer></script>
<opus-motion recipe="loading-loop">
</opus-motion>recipes/loading-loop.json
{
"id": "loading-loop",
"title": "Loading loop",
"useFor": "Seamless loading / waiting / processing loop for splash screens, empty states and \"generating…\" moments.",
"format": "square",
"duration": 144,
"background": "#ECE4D7",
"tags": [
"loading",
"loop",
"spinner",
"wait",
"processing",
"splash",
"seamless",
"pulse"
],
"web": {
"loop": "restart"
},
"layers": [
{
"motion": "sonar-ping",
"role": "subject",
"props": {
"pings": 3,
"pingEvery": 48,
"windowSize": 0,
"echoAngles": []
}
}
],
"notes": "A 144-frame (3 × 48) sonar loop with no picture windows. Recolour with color and background. For dark UIs: background \"#0E1116\", color \"#7AA2FF\", paper false."
}