Questions tagged [packery]

Packery is a pure JavaScript/jQuery layout library that intelligently lays out elements so as to fit them into as small a space as possible.

Packery is a JavaScript layout library that uses a bin-packing algorithm to fit elements together with as little space between them as possible. This is a fancy way of saying "it fills empty gaps." Packery layouts can be intelligently ordered or organically wild. Elements can be stamped in place, fit in an ideal spot, or dragged around.

159 questions
0
votes
2 answers

Center Container for JQuery Packery?

I use JQuery Packery which works fine. The question that occurs to me is how can I center the item container on my page?
...
...
...
confile
  • 29,115
  • 44
  • 187
  • 340
0
votes
2 answers

Packery horizontal layout

I am using the awesome script Packery. (https://github.com/metafizzy/packery) However the script is for vertical layouts and not horizontal. 2 weeks ago a user modified the original version, so it's possible to have a horizontal…
0
votes
2 answers

Is it possible to override box-sizing:border-box?

I currently use box-sizing:border-box on all elements * but I've noticed this is conflicting with the packery.js plugin I'm using on each of the elements and I was wondering if there is a way that I can override or reset back to the default for…
styler
  • 13,569
  • 20
  • 73
  • 127
0
votes
1 answer

jQuery Filtr.js and Packery Callback

This may pull off as a bit of a n00b question, but I am a jQuery n00b. I've combined bin sorting (Packery) with filtering (Filtr.js) here (search box at top left). Problem is once you filter, spaces are left in the layout until you resize the window…
Domenico
  • 5
  • 3
0
votes
1 answer

Randomly placed draggable divs - organize/sort function?

Currently I have a page which on load scatters draggable divs randomly over a page using math.random Using media queries however the page uses packery to display the same images for browser widths under 769px in a grided fashion. I had the idea that…
-1
votes
1 answer

Packery left-to-right ordering for horizontal layouts

I'm using Metafizzy's packery with draggabilly. The ordering codepen shows left-to-right ordering, but not for horizontal layouts: Using horizontal layouts, it defaults to top-to-bottom: Question: two years ago, he said left-to-right ordering…
Growler
  • 10,676
  • 21
  • 100
  • 224
-1
votes
1 answer

Using mouse actions with Packery library after expanding an item

I've made a fork (click) on Codepen form David DeSandro's "Packery - animate item width and height, with responsive sizing". As you can see when you click on the button inside an item it expands and a black tint covers the whole canvas. Click on it…
-3
votes
1 answer

minified javascript codes, I don't understand, can anyone explain it

I'm trying to improve myself by working on codes. I can understand its normal state without any problems. In the sample code below, jquery, value reading, value assignment and if-else queries are nested. I could not get the code in a meaningful…
NovaYear
  • 147
  • 1
  • 2
  • 13
1 2 3
10
11