Even though Adobe no longer supports Flash (formerly Macromedia Flash), Adobe still supports Animate to create SWF files. You can then use one of the many apps available to convert to HTML5.
Interactive animations created with SWF -> HTML/JS conversion enables you to created highly interactive visual interfaces to control access to feedback from your AI. Highly graphical interfaces are useful for kiosks, handheld interfaces, and other small touch-screen technologies.
Adobe Animate also has native, built-in support specifically for the HTML5 Canvas document type, allowing you to use its traditional visual timeline, workspace, and vector tools to export clean HTML5 and JavaScript. (See https://helpx.adobe.com/animate/desktop/interactivity/creating-publishing-html5-canvas-document.html.)
If you get a playback error, above, download the Ruffle Flash Emulator
Use frames to position animation on page:
<iframe src="http://flanks.org/{{file}}.html"
frameborder="0" width={{x}}height={{y}}
allowfullscreen> </iframe>