How do I find the top of a tilted DIV?
-
There is a rectangular DIV with a specific width and height (e.g. 70px by 100px).
And it's styledtransform: rotate (15deg)
How to find out where its peaks are?JavaScript Anonymous, Apr 19, 2020 -
getBoundingClientRect ()Chase Melendez
-
Answer hereDeclan Spears
-
Geometry + js. ;)Anonymous
-
var style = window.getComputedStyle (element [, pseudoElt]);Eloise Meyer
4 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!