To achieve the transformative effect on elements, I utilize rotateX, rotateY, and perspective properties.
By using getBoundingClientRect(), I am able to retrieve details such as top, left, bottom, right, width, and height of an element.
Is there a method to calculate the four vertices coordinate of a (DOM element) once the image has been transformed?
Apologies for any errors in my language.
Watch the video demonstration here
Check out image demos here: