SkillAgentSearch skills...

Rucksack

rucksack.js arranges your elements into a proper beautiful arrangement in a given width constraint.

Install / Use

/learn @heroic/Rucksack
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Rucksack

Rucksack is a jquery plugin to arrange elements that can fit in the given width. It relies on the knapsack algorithm.

Usage:

$('#container').rucksack({
    width: 'width to fit in. defaults to 960px',
    class: 'class name to be given to the div that will contain the elements of one row. defaults to rucksack'
})

Example

Here's a working example by @omgmog

http://jsfiddle.net/vXbCY/

Another example by ctcherry

http://jsfiddle.net/URMuA/

Contributors:

  1. gauravsc
View on GitHub
GitHub Stars247
CategoryDevelopment
Updated1y ago
Forks8

Languages

JavaScript

Security Score

65/100

Audited on May 5, 2024

No findings