Animations need state machines

Every time I create an animation for the web I’m struck by the contrast between web technologies and game engines.


Animations scream out for state machines. Not just keyframes but states with hooks and triggers. The web1.0 document model is amazing for documents. But I’m convinced animations need state machines.