Adjusting css transform and animation