script
Good question! Not a script, that'd be sweet if someone can figure it out. It's CSS animations. You can't define new keyframes inline to make your own animations, but cohost has a couple animations in its own css and you can borrow them. I tweaked the settings of one to make it essentially change the visibility of its target, then set a separate delay for every letter of the animated part. Obviously that last bit would be a huge pain in the rear to do manually, so the python script has a function that takes in the text you want to animate letter by letter and the delay increment and slaps the tags on each letter for you. The post doesn't need the script to function, since you just copy the output of the python program into a cohost post but I threw it in in case anyone wanted to do something similar.
Ohhh i understand, clever!! Do you have a resource that explains the syntax for defining animations inline? I've very used to defining them within style sheets, but inline escapes me. I've been doing cursory research since I saw your post and haven't been able to find much other than people saying "not possible".
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations mdn web docs is a great resource in general. You can't define @ keyframes inline, but the animation property can be used inline, and it has subproperties that are relevant here. (most notably timing-function lets you make it so that there's no interpolation frames, and fill-mode lets you make the object behave properly before/after it's animated)