New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cascade-layout

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cascade-layout

Simple and lightweight plugin to flow blocks like masonry. The plugin is kudago/waterfall successor

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Cascade.js

Simple minimalistic plugin for masonry-like layout. Lightweight (3kb minified) jQuery-free library, a successor of kudago/waterfall.js.

Demo

Usage

Browserify:

$ npm install cascade-layout
var cascade = require('cascade-layout');

You can also use it with native JS:

var cascade = new Cascade(element, options);

Or with jQuery:

$(elem).cascade(options);

Options

{
	childrenSelector: null, //children selector (simply children if null)
	minWidth: 300, //minimal width of the children
	autoResize: true //resize automatically on resize
}

Methods

When using VanillaJS or CommonJS forms you can call the instance's reflow method to make Cascade redraw the elements

var cascadeItem = new Cascade(...);
cascadeItem.reflow() //reposition cascade elements

FAQs

Package last updated on 16 Sep 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc