You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
# MiniMasonry.js
4
4
5
-
Minimalist dependancy free Masonry layout library
5
+
Minimalist dependency free Masonry layout library
6
6
7
-
MiniMasonry is a **lightweight**dependancy free Masonry layout. It will compute elements position in Javascript and update their positions using css's **transform attribute**. This means positioning does not trigger browser layout and **use** the device's **GPU**. This also allow css animation during element positionning.
7
+
MiniMasonry is a **lightweight**dependency free Masonry layout. It will compute elements position in JavaScript and update their positions using CSS's **transform attribute**. This means positioning does not trigger browser layout and **use** the device's **GPU**. This also allows CSS animation during element positioning.
8
8
9
9
MiniMasonry is **responsive**, you give it a target width and it will adjust columns number and elements width. MiniMasonry will increase element width (until another column can fit in the layout) but will never reduce the target width.
10
10
@@ -45,9 +45,9 @@ Name | Default value | Description
45
45
baseWidth (int)|255|Target width of elements.
46
46
container (string\|HTMLElement)|Null|Container's selector or element. **Required**
47
47
gutter (int)|10|Width / height of gutter between elements. Use gutterX / gutterY to set different values.
48
-
gutterX (int)|null|Width of gutter between elements. Need gutterY to works, fallback to `gutter`.
49
-
gutterY (int)|null|Height of gutter between elements. Need gutterX to works, fallback to `gutter`.
50
-
minify (boolean)|true|Whether or not MiniMasonry place elements on shortest column or keep exact order of list.
48
+
gutterX (int)|null|Width of gutter between elements. Need gutterY to work, fallback to `gutter`.
49
+
gutterY (int)|null|Height of gutter between elements. Need gutterX to work, fallback to `gutter`.
50
+
minify (boolean)|true|Whether or not MiniMasonry places elements on the shortest column or keeps exact order of the list.
51
51
surroundingGutter (boolean)|true|Set left gutter on first columns and right gutter on last.
52
52
ultimateGutter (int)|5|Gutter applied when only 1 column can be displayed.
53
53
direction (string)|"ltr"|Sorting direction, "ltr" or "rtl".
0 commit comments