working versoin of the marker animation