Creating Dynamic Animations with Algebra