j-toscani / maisonry

A simple script to create a responsive maisonry grid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a responsive Maisonry-Grid

This project uses:

Base version

  • CSS Custom Properties
  • MediaQueryList API
  • Array Methods
  • DOM Manipulation

Advanced Version

  • Fetch API
  • Promises and Async/Await

Prerequisites

As most of the work is done by Javascript. If you are new to Javascript, you should know how you can access the DOM and how to work with Arrays.

The Basic HTML

The Basic Styles

The Concept: Sorting the elements

Problem

Solution

Implementation

Advanced Application: Adding images

Problem

Solution

Implementation

About

A simple script to create a responsive maisonry grid.


Languages

Language:JavaScript 77.6%Language:CSS 14.0%Language:HTML 8.4%