For animation, transform supports px % vw vh. The unit should not be a problem. For page turning animation, some are made with frame animation and css. For finger sliding, just write it into the touch event. js You cannot control the horizontal or vertical screen, but you can monitor whether the current screen is horizontal or vertical. If you use the horizontal screen on WeChat, there will be a bug. After you share the horizontal screen status of your Apple phone, you can no longer return to the horizontal screen, and you can only exit. Enter the web page again. I don’t know if it has been repaired now. Also, Android WeChat requires users to manually turn on the horizontal screen state (it does not refer to the screen rotation of the mobile phone, but WeChat itself also has a horizontal screen mode) The size of the design drawing is impossible Taking into account all mobile phones, there are mobile phones of all sizes. There are long ones like the iPhone 5, and there are also various flat ones with virtual buttons. It depends on how you use it. You can refer to the concept of world coordinates in game development
For animation, transform supports px % vw vh. The unit should not be a problem.
For page turning animation, some are made with frame animation and css.
For finger sliding, just write it into the touch event.
js You cannot control the horizontal or vertical screen, but you can monitor whether the current screen is horizontal or vertical. If you use the horizontal screen on WeChat, there will be a bug. After you share the horizontal screen status of your Apple phone, you can no longer return to the horizontal screen, and you can only exit. Enter the web page again. I don’t know if it has been repaired now. Also, Android WeChat requires users to manually turn on the horizontal screen state (it does not refer to the screen rotation of the mobile phone, but WeChat itself also has a horizontal screen mode)
The size of the design drawing is impossible Taking into account all mobile phones, there are mobile phones of all sizes. There are long ones like the iPhone 5, and there are also various flat ones with virtual buttons. It depends on how you use it. You can refer to the concept of world coordinates in game development