2.0.4 • Published 1 year ago

columns-layout v2.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

columns-layout

Efficiently utilize the space for your webpage - This plugin can help you efficiently utilize the space in your webpage. It aligns your section form top to bottom as well as making cross column layout.

Visit https://johnsonhklhk.com/columns for detail.

Demo image

Visit https://johnsonhklhk.com/columns for detail.

Getting Started

Quick Start

  1. Import columns.min.js :
    <script src="columns.min.js"></script>
  2. Add HTML Layout :
    <div class="columns">
        <div>...</div>
        <div>...</div>
        <div>...</div>
        ...
    </div>
  3. Initialize Columns :
     <script>
         var myColumns = new Columns(".columns", {
             count: 2,
             gap: 12,
             autoHeight: true,
             breakpoints: {
                 768: {
                     count: 4,
                     gap: [12, 16],
                 },
                 992: {
                     count: 6,
                     gap: 16,
                 },
             },
         }).init();
     </script>

Visit https://johnsonhklhk.com/columns for detail.