Home > Web Front-end > JS Tutorial > body text

Detailed explanation of the use of pure native JS waterfall plug-in Macy.js

小云云
Release: 2018-01-15 17:16:00
Original
4805 people have browsed it

This article mainly introduces Macy.js, a pure native JS waterfall flow plug-in that is a must-have front-end plug-in. It is a very lightweight pure native JS waterfall flow plug-in. Those who are interested can learn more about it. I hope it can help everyone. .

This is a very lightweight pure native JS waterfall flow plug-in - Macy.js. There are many picture and video websites nowadays, and it is very suitable for layout methods such as waterfall flow to be presented to users.

This flow layout JS plug-in is only 4KB in size, which can be said to be very lightweight. The configuration is also relatively convenient. Users can customize the spacing and number of columns. Another feature is that they can define different screen resolutions and different number of columns. This application is very convenient in responsive web design.

So, choosing a simple and easy-to-use waterfall js plug-in can allow front-end engineers to quickly develop beautiful waterfall PC websites and react backend projects.

The representative website of waterfall flow layout is Huaban.com, a design website that designers will definitely be familiar with.

Plug-in Features

  1. Lightweight, only 4KB in size, the min version is only 2KB!

  2. The number of layout columns can be customized;

  3. Pure JS, no need to rely on the jQuery library.

Let’s take a look at the Macy.js project case screenshot first:

Official website address: http://macyjs.com/

The following are the specific instructions:

Step 1: Introduce the JS file at the footer of the page (cannot be placed in the Header)


Copy after login

Step 2: HTML structure


Copy after login

Step 3: Configure JS


Copy after login

If you use vue and react, You can use npm to install macy.JS


npm install macy
Copy after login

github warehouse address: https://github.com/bigbitecreative/macy.js

Related Recommended:

Introduction to the use of Jquery waterfall flow plug-in_jquery

Detailed explanation of the use of jQuery Masonry waterfall flow plug-in_jquery

jQuery waterfall flow plug-in Wookmark usage example_jquery

The above is the detailed content of Detailed explanation of the use of pure native JS waterfall plug-in Macy.js. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!