Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.32 KB

README.md

File metadata and controls

46 lines (39 loc) · 1.32 KB

Rdio-inspired Grid View

This is a fork of flisterz rdio-grid http://flisterz.github.io/rdio-grid/. I adjusted the recalculate() function to accept additional parameters for better margin handling.

This is an attempt to recreate Rdio-style grid view, as seen on their album grid view. The column count and target width will adjust depending on window size.

###Example

recalculate(".grid", 175, 15)

Usage

recalculate(target_class, min_width, margin)

Options

Name type description
target string The class of your grid item.
min_width integer The min_width desired for your grid item
margin integer The margin to be applied to the grid item.

###TODO:

  • Find a better margin fix than current "inline-block/margin-left" hack
  • fix jumpiness (css animations?)