initialise map after css transition ends