The preferred way at the moment is with HTML, but there are other ways like the old flash (disabled by default but working), after effect and bodymovin/lottie (I just know it exist) and probably other ways that I don’t know.
Anyway you can check this guide if you want to build an HTML template
https://casparcgforum.org/t/introduction-to-casparcgs-html-producer/1386