Just like the title. I developed an APP using H5. Clicking on the QR code has been implemented. How to better implement the barcode clicking to enlarge and horizontal screen?
The effect is similar to Alipay and WeChat’s payment interface
The effect of Figure 3. I didn't do it well. I beg you all to provide elegant implementation methods.
I think we can use the 2D transform rotate (angle) attribute in transform in CSS3 to do it! Let it rotate when you click it
Idea: Detect horizontal and vertical screens =>
tansform rotate
& changefont-size
Provide a more detailed horizontal and vertical screen practice, mobile side forced horizontal screen and forced vertical screen solutions
Try searching for this
onorientationchange
, there may be compatibility issues, the code implementation cannot be explained in a sentence or two, and it may not be the effect you want;