optimize qrcode scan animation