One step higher that composite behaviours are Incidents that not only they have built-in Incidents but they also have (and render) context of their own. This way we can create Incidents that can take params (such as colors, text, images, duration, etc) and dynamically render and animate anywhere the user selects to put them.
The specific html, css to use along with the fonts and/or audioSources of your Clip can be set via getters on your Clip:
- get html
- get css
- get fonts
- get audioSources
All of which can be templated and use the initParams of their properties to dynamically set their values.
Your Clip is now ready for export and can be imported on any other Clip. The only thing the final users / developers need to do is to set duration and selector, as normal.