While the function rotates by flipping the left and right edges of the browser window, it does not rotate the image by flipping the top and bottom edges of the browser window. The image is still stretched horizontally, but the image is rotated. This is where the rotation comes into play, because if you were to rotate the image vertically, it would still rotate the image horizontally.
We have this issue because our images are always stretching horizontally, which is why the image only rotates by flipping the left and right edges. That is why the image is rotated horizontally, while still stretching vertically. This is what allows for the video to rotate properly by using this trick.
The solution for this is by using the rotate function. This simply rotates the image using the current X offset and Y offset.
To see how this works, we need to take a look at some of the previous rotations we have.
This is what we did in the previous slide.