How do I find the top of a tilted DIV?

  • 0
    There is a rectangular DIV with a specific width and height (e.g. 70px by 100px).
    And it's styled transform: rotate (15deg)

    How to find out where its peaks are?
    JavaScript Anonymous, Apr 19, 2020

  • 4 Answers
  • 0

  • 0
    Answer here
    Declan Spears

  • 0
    Geometry + js. ;)
    Anonymous

  • 0
    var style = window.getComputedStyle (element [, pseudoElt]);
    Eloise Meyer

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!