Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getBoundingClientRect

// Return the size of an element and its position relative to the viewport:

const rect = obj.getBoundingClientRect();
console.log(rect)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #getBoundingClientRect
ADD COMMENT
Topic
Name
4+1 =