Fixed flip flicker by using an opacity transition