Writing and coding animations