Gridzy.Gallery
Puken JavaSkript

Most mi amwarar fotofotun ua fen kuna. Ren enletin emon a weweiti ifa usun an epwe fori ei PWUNG!

Milo Persik – emon chon aea ewe puk .

Mwitir mirit

1 minich ewe video a kaeo .

Kopwe kaeo ei non chok ew minich:

Ewe popun aea

Konfigurasi

Ekkewe filter

Foutan

Kopwe apwapwaai ewe ran .
Kis ngeni aramasom kewe .
Kopwe pin ngeni pwisin en .
Kosapw monuki ewe pwapwa .
Mefi ewe napanap .

Ekkewe Napanapen Kapsen

Ekkewe style mi fen affat me mwan pwe epwe mecheres an epwe mwitir ponuweni .

Kopwe suki ekkewe sasing pwe kopwe kuna ewe style mi kon watte. Kopwe fiti ekkewe button me ekkewe chon finata köl pwe kopwe tongeni äeä ewe style mi pwäratä.

Tag & Filta

Ren an epwe pwarata om kewe sasing non ew napanap mi murinno .

Ewe minen filter mi nom lon ewe imw a fokkun öch. Ewe ennet pwe ekkewe chon finata CSS ra aea fan iten ewe angangen filter a wesewesen atufichi arapakan meinisin sokkun filter.

A fokkun tipeeufengen

A tongeni äeä ren chommong pworaus .

Kopwe fiti ewe galeri me ew me ew ekkewe saram. Ewe tufichin pwe epwe tipeew ngeni arapakan 100%. Klik won ekkewe sasing pwe kopwe kuna ewe nenien saram PhotoSwipe pwe ew nenien appiru.

Mei wor ekkewe porausen blog ren ekkewe kinikinin kode mi fen ammonata:

A fokkun siwin

Kopwe apwapwaai ewe ran .
Kis ngeni aramasom kewe .
Kopwe pin ngeni pwisin en .
Kosapw monuki ewe pwapwa .
Mefi ewe napanap .

Kopwe fori ekkewe style mi fich .

Ika ka sinei usun CSS, ka tongeni styleini ekkewe pisekin galeri usun met ka mochen.

CSS ren awewe mi pwa:

/* CSS class: "gridzySkin-custom-sepia" */

@property --gridzySkin-custom-sepia--filter-sepia {
	initial-value: 1;
	inherits: true;
	syntax: "<number>";
}
@property --gridzySkin-custom-sepia--filter-contrast {
	initial-value: 1;
	inherits: true;
	syntax: "<number>";
}

.gridzySkin-custom-sepia > .gridzyItem {
	position: relative;
	overflow: unset;
	margin: -10px;
	border: 10px solid #fff;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, .5);
	border-radius: 10px;
}

.gridzySkin-custom-sepia > .gridzyItem *:not(.gridzyCaption) {
	display: inline;
}

.gridzySkin-custom-sepia > .gridzyItem .gridzyCaption * {
	display: initial;
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(4n) {
	transform: rotate(-1deg);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(4n+1) {
	transform: rotate(-.5deg);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(4n+2) {
	transform: rotate(1deg);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(4n+3) {
	transform: rotate(.5deg);
}

.gridzySkin-custom-sepia .gridzyImage {
	position: relative;
	vertical-align: middle;
	border-radius: 3px;

	--gridzySkin-custom-sepia--filter-sepia: 1;
	--gridzySkin-custom-sepia--filter-contrast: .7;
	filter: sepia(var(--gridzySkin-custom-sepia--filter-sepia)) contrast(var(--gridzySkin-custom-sepia--filter-contrast));
	transition: --gridzySkin-custom-sepia--filter-sepia .6s, --gridzySkin-custom-sepia--filter-contrast .6s;
}

.gridzySkin-custom-sepia > .gridzyItem:hover .gridzyImage {
	--gridzySkin-custom-sepia--filter-sepia: 0;
	--gridzySkin-custom-sepia--filter-contrast: 1;
}

.gridzySkin-custom-sepia .gridzyCaption {
	margin: 0;
	padding: .5em;
	position: absolute;
	z-index: 1;
	bottom: -.5em;
	top: auto;
	width: auto;
	max-width: calc(100% - 2em);
	height: fit-content;
	max-height: 100%;
	overflow: auto;
	box-sizing: border-box;
	background: rgba(238, 238, 238, .8);
	color: #000;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
	opacity: 0;
	transition: opacity .3s;
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(3n) .gridzyCaption {
	transform: translateX(1000px) translateX(-50%) rotate(3deg);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(3n+1) .gridzyCaption {
	transform: translateX(1000px) translateX(-50%) rotate(-3deg);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(3n+2) .gridzyCaption {
	transform: translateX(1000px) translateX(-50%) rotate(-1deg);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(5n) .gridzyCaption {
	left: calc(50% - 1000px);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(5n+1) .gridzyCaption {
	left: calc(54% - 1000px);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(5n+2) .gridzyCaption {
	left: calc(46% - 1000px);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(5n+3) .gridzyCaption {
	left: calc(52% - 1000px);
}

.gridzySkin-custom-sepia > .gridzyItem:nth-child(5n+4) .gridzyCaption {
	left: calc(48% - 1000px);
}

.gridzySkin-custom-sepia > .gridzyItem:hover .gridzyCaption {
	opacity: 1;
}

Kopwe aea och HTML .

Ka tongeni aea arapakan meinisin HTML. Mei wor chok ekkoch minen eppet. Ekkewe awewe mi pwapwalo ikei ir me ruu ra efisata ewe chok sokkun feioch mi kuna.

Awewe 1:

<ul class="gridzy gridzySkinClassic">
	<li>
		<a href="https://www.example.com/">
			<img class="gridzyImage" src="https://www.example.com/image1.jpg" />
			<span class="gridzyCaption">example caption 1</span>
		</a>
	</li>
	<li>
		<a href="https://www.example.com/">
			<img class="gridzyImage" src="https://www.example.com/image2.jpg" />
			<span class="gridzyCaption">example caption 2</span>
		</a>
	</li>
	...
</ul>

Awewe 2:

<section class="gridzy gridzySkinClassic">
	<figure>
		<img class="gridzyImage" src="https://www.example.com/image1.jpg" />
		<figcaption class="gridzyCaption">example caption 1</figcaption>
	</figure>
	<figure>
		<img class="gridzyImage" src="https://www.example.com/image2.jpg" />
		<figcaption class="gridzyCaption">example caption 2</figcaption>
	</figure>
	...
</section>

Ekkewe Pwal Ekkoch Pisek mi Älilliséch .

Lazy Load

A mwittir äeä ekkewe sasing ka küna .

Ei a load chok ekkewe sasing mi arap ngeni ewe neni mi tongeni kuna. Iwe, a kon watte bandwid ren ekkewe sasing mi tongeni kuna.

API

A mut ngonuk om kopwe fori chommong mettoch .

Ei a atufichuk om kopwe apacha me angeiano ekkewe sasing non prokram, siwini ekkewe kefil ika fori met a fis.

Ekkesiwin

A awora ngonuk ekkewe minen asoso fan iten emon me emon ekkewe osukosuk .

Iei ew ionfengenin ekkewe porausen blog mi watteno non fansoun me a wor kinikinin kode mi anisi pwe epwe mecheresin apachanong Gridzy.Gallery .

User Usun ewe Library .

Sipwe poputa ne angang!

Klik won ewe button pwe kopwe cheki ekkewe kokkot!