Skip to content

Repository files navigation

Masonry banner

Masonry

An example of a beautiful Pinterest style layout library, available for you to take and use as you wish in your projects.

Demo

Masonry screenshot

Features

  • Vanilla Typescript
  • Light & Responsive
  • Use in your projects or as learning material

Setup

Pass a Breakpoint[] to configure the columns and gutter for different breakpoints

DescriptionType
thresoldThe pixel >= this should apply tonumber
columnsThe number of columnsnumber
gutterThe pixel gap between the cardsnumber

e.g.

constoptions:Breakpoint[]=[{threshold: 0,columns: 1,gutter: 32,},{threshold: 600,columns: 3,gutter: 32,},{threshold: 1000,columns: 4,gutter: 32,}];setup(options)

About

A Pinterest style masonry library

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages