1.0.6 • Published 6 years ago
dimension-setter v1.0.6
dimension-setter
Usage:
var DimSet = require('dimension-setter');
You can set and return the width/height of an element.
Set Height: DimSet.setHeight(string|object);
Set Width: DimSet.setWidth(string|object);
Return Height: DimSet.getHeight(string|object);
Return Width: DimSet.getWidth(string|object);
Examples:DimSet.getWidth('#div-id');
orDimSet.getWidth(document.getElementById('#div-id'));
Sometimes you need to set the height and/or width of a DOM element. Whatever the reason, I'm not here to judge, this plugin might help.