Skip to content

Get the size of any element in the DOM even when it's not visible yet

License

Notifications You must be signed in to change notification settings

neverwoods/jquery-getsize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-getsize

Get the size of any element in the DOM even when it's not visible yet

Installation

bower install --save jquery-getsize

Usage

jQuery(document).ready(function ($) {

  var sizes = $('.element-selector').getSize();
  
  /*
  {
    width: '100px',
    height: '100px'
  }
  */
   

});

About

Get the size of any element in the DOM even when it's not visible yet

Resources

License

Stars

Watchers

Forks

Packages

No packages published