javascript canvas example shows how u can build simple animation and get animation by events , like dibalo game clicked style