New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

grid-align

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grid-align

Grid Align is a simple JavaScript library for aligning children of grid-like elements, so that there is no unused white space at the end of the rows.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Grid Align

**Grid Align** is a simple JavaScript library for aligning children of grid-like elements, so that there is no unused white space at the end of the rows.

NOTE: I know the algorithm is not perfect, but it is the fastest one I could come up with for working with a lot of items (100+)

Install:

npm i -S grid-align

Options

randomizeRows

Randomizes the order of the rows (excluding the last row). With this option disabled, the larger elements will all be at the top of the grid.

alignGrid(element, {
	randomizeRows: true
});

animation

Duration (in milliseconds) animation should last during alignment.

alignGrid(element, {
	animation: 1000
});

Keywords

grid

FAQs

Package last updated on 20 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts