more general interface

- provided a forEach interface, and function specializations for
position and transition
- moved the animation example into index.html