CheckPLS
For find out if the target is 'Portrait' 'Landscape' or 'Square'.
Install
npm
$ npm install check-pls
CDN
Usage
// => string ['portrait'||'landscape'||'square'] // => boolean // => boolean // => boolean
Example
html
use imagesLoaded
$ npm install imagesloaded
const elements = documentconst el = Array
Result:
// image-portrait.jpg portrait false // image-landscape.jpg landscape true // image-square.jpg square false
License
Released under the MIT license.