From ebedf7a21da78e2449cb16b1a1ff79ecd70ece84 Mon Sep 17 00:00:00 2001 From: Bruno Vieira Date: Tue, 8 Dec 2020 16:30:06 +0000 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a0d8027..9a1a935 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,8 @@ demo1.SetupEasyGrid(); | `animations` > `addItemSpeed` | `Integer` | `Integer` | Speed(ms) at which each item is added| | `style` > `background` | `String` | `random`, `shadesOfGrey`, `HEX`, `RGBA` | Item's Background color| | `style` > `borderRadius` | `Integer` | `Integer` | Item's Border Radius| +| `responsive` > `breakpoint` | `Integer` | `Integer` | Responsive breakpoint, interrupts natural flow of EasyGrid and adds desired columns| +| `responsive` > `columns` | `Integer` | `Integer` | Number of columns after breakpoint| Full Example: @@ -166,7 +168,17 @@ document.addEventListener("DOMContentLoaded", function() { style: { background: "random", borderRadius: "5" - } + }, + responsive: [ + { + breakpoint: 500, + columns: 2 + }, + { + breakpoint: 300, + columns: 1 + } + ] }); }); ```