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)
recalculate(target_class, min_width, margin)
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?)