Exporting a flow
An animated SVG can carry its flows: the file starts in the flow's first state and reacts to the pointer as the preview did, with the player inside it. The page around it can follow and drive the flow from its own script.
Step by step
Open Export
Click Export at the right of the top bar (Ctrl E), then Animated SVG across the top of the window.
Start it with the flow
In Playback, pick With the flow “Main” in Starts: the first choice whenever the file has a flow in use. Repeat, Direction and Speed then belong to each state, so their rows go; another Starts exports the plain animation.
Try it in the preview
Click the switch in the preview: the preview is the file itself. Under it, the LIVE bar says which state plays and What happened lists each step; Variables and Themes show there too when the flow has them.
See what the page can call
Click Embed in your site, then Player API. It lists what the page can call, with the file's own ids: player.flow() starts the flow again, player.flowState() names the state it is in, and the SVG fires cin:state on every change. A flow with variables adds player.set(), player.get() and player.send(). The other tabs have the code to put the file in your page.
Download it
Click Download .svg. The file has the player and the flow inside: it plays on its own in any page.
Keys
| Ctrl E | Export |