Code Monkey home page Code Monkey logo

myukiwaterfallgallery's Introduction

MyukiWaterfallGallery

A waterfall flow gallery plugin created with love.

Usage

<link rel="stylesheet" href="./css/MyukiWaterfallGallery.css">
<script src="./js/MyukiWaterfallGallery.js"></script>
<script>
const MWG = $MWG({
  selector: ".container",
  /*
  selector: Container of Waterfall Flow Gallery.
  default: body
  */
  margin: "1rem",
  /*
  margin:margin of gallery.
  default: "1rem"
  */
  viewWidth: "80%",
  /*
  viewWidth:Maximum width of image preview.
  default: "80%"
  */
  col_spacing: "10px",
  /*
  col_spacing: Spacing between columns.
  default: "10px"
  */
  row_spacing: "10px",
  /*
  row_spacing: Spacing between rows.
  default: "10px"
  */
  lazyLoadSize: 20,
  /*
  lazyLoadSize: Size of lazy loading of images.
  default: 20
  */
});
MWG.loadImgList([{
		"title": "pixiv_68566145.png",
		"url": "https://img.hachiman.eu.org/pixiv_68566145.png",
		"size": "1.31MB",
		"width": 1968,
		"height": 1477,
		"color": [
			166,
			127,
			125
		]
	},
	{
		"title": "pixiv_80675375.jpg",
		"url": "https://img.hachiman.eu.org/pixiv_80675375.jpg",
		"size": "1.19MB",
		"width": 1200,
		"height": 1600,
		"color": [
			251,
			127,
			104
		]
	},
	{
		"title": "pixiv_50362556.png",
		"url": "https://img.hachiman.eu.org/pixiv_50362556.png",
		"size": "452.75KB",
		"width": 585,
		"height": 921,
		"color": [
			17,
			37,
			54
		]
	}
]);
/*
You can use waterfall_data_gen.py to generate the required image data list.
*/
</script>

Preview

MyukiWaterfallGallery

myukiwaterfallgallery's People

Contributors

uyukisan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.