From 68178edf8f2916dab133247d9166e864debe1d73 Mon Sep 17 00:00:00 2001 From: Seth Westphal Date: Tue, 15 Jun 2021 19:44:05 -0500 Subject: [PATCH 1/2] Clean up README comments. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f7cb35f..62c1cb2 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ magicGrid.listen(); The MagicGrid constructor. Initializes the grid with a configuration object. ```javascript let magicGrid = new MagicGrid({ - container: "#container", // Required. Can be a class, id, or an HTMLElement + container: "#container", // Required. Can be a class, id, or an HTMLElement. static: false, // Required for static content. Default: false. items: 30, // Required for dynamic content. Initial number of items in the container. gutter: 30, // Optional. Space between items. Default: 25(px). @@ -122,7 +122,7 @@ let magicGrid = new MagicGrid({ useMin: true, // Optional. Prioritize shorter columns when positioning items? Default: false. useTransform: true, // Optional. Position items using CSS transform? Default: True. animate: true, // Optional. Animate item positioning? Default: false. - center: true, //Optional. Center the grid items? Default: true. + center: true, // Optional. Center the grid items? Default: true. }); ``` @@ -132,7 +132,7 @@ let magicGrid = new MagicGrid({ Positions the items and listens for changes to the window size. All items are repositioned whenever the window is resized. ```javascript let magicGrid = new MagicGrid({ - container: "#container", // Required. Can be a class, id, or an HTMLElement + container: "#container", // Required. Can be a class, id, or an HTMLElement. static: true, // Required for static content. animate: true, // Optional. }); @@ -147,9 +147,9 @@ This function is useful in cases where you have to manually trigger a reposition ```javascript let magicGrid = new MagicGrid({ - container: "#container", // Required. Can be a class, id, or an HTMLElement + container: "#container", // Required. Can be a class, id, or an HTMLElement. items: 30, // Required for dynamic content. - animate: true, // Optional + animate: true, // Optional. }); magicGrid.listen(); From cbf4bda46fc354ec6f1bdc5e6ef991e16245db78 Mon Sep 17 00:00:00 2001 From: Seth Westphal Date: Tue, 15 Jun 2021 19:46:07 -0500 Subject: [PATCH 2/2] Missed a spot. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62c1cb2..1b30683 100644 --- a/README.md +++ b/README.md @@ -120,9 +120,9 @@ let magicGrid = new MagicGrid({ gutter: 30, // Optional. Space between items. Default: 25(px). maxColumns: 5, // Optional. Maximum number of columns. Default: Infinite. useMin: true, // Optional. Prioritize shorter columns when positioning items? Default: false. - useTransform: true, // Optional. Position items using CSS transform? Default: True. + useTransform: true, // Optional. Position items using CSS transform? Default: true. animate: true, // Optional. Animate item positioning? Default: false. - center: true, // Optional. Center the grid items? Default: true. + center: true, // Optional. Center the grid items? Default: true. }); ```