Gridzy.Gallery
Isomero rya JavaScript

Ibyinshi mubitangaje byamafoto nabonye. Ubwanyuma umuntu yumva uburyo bwo gukora UBURENGANZIRA!

Milo Persic - ukoresha isomero

Ubushishozi bwihuse

Iminota 1 yigisha amashusho

Iga ibi mumunota umwe gusa:

Ikoreshwa ryibanze

Iboneza

Muyunguruzi

Kugaragara

Nuhimbaze uwo munsi
Komeza abakunzi bawe
Ba umwere wenyine
Ntiwibagirwe kwishimisha
Umva kamere

Imisusire

Ibisobanuro byanditse mbere yuburyo bworoshye kubisubizo byihuse

Hisha amashusho kugirango ubone uburyo bwanditse bwanditse. Kina na buto hamwe nabatoragura amabara kugirango ugaragaze imiterere yubatswe.

Tagi & Akayunguruzo

Kugaragaza amashusho yawe muburyo bunoze

Sisitemu yubatswe muri sisitemu iroroshye guhinduka. Kuba abatoranya CSS bakoreshwa mugushungura mubyukuri bifasha ubwoko ubwo aribwo bwose bwo kuyungurura.

Birahuye cyane

Ikoreshwa Na Lightbox

Huza ingoro hamwe nagasanduku kamwe. Ibishoboka ko bihuye hafi 100%. Kanda amashusho kugirango ubone urumuri rwa PhotoSwipe nkurugero.

Hano hari ingingo za blog zifite kodegisi zateguwe:

Biroroshye

Nuhimbaze uwo munsi
Komeza abakunzi bawe
Ba umwere wenyine
Ntiwibagirwe kwishimisha
Umva kamere

Kurema uburyo bwihariye

Niba umenyereye CSS, urashobora gutunganya ibintu byerekana uko ubishaka.

CSS yerekana urugero:

/* 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;
}

Koresha HTML iyariyo yose

Urashobora gukoresha HTML hafi ya yose. Hano haribibujijwe cyane. Ingero zerekanwa hano zombi zitanga ibisubizo bimwe bigaragara.

Urugero 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>

Urugero rwa 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>

Ibindi Byingirakamaro

Ubunebwe

Fungura amashusho yawe wihuse

Iremerera gusa ayo mashusho yegereye agace kagaragara. Umuyoboro mwinshi rero kumashusho agaragara.

API

Emerera gukora byinshi

Ibi biragufasha kongeramo no gukuraho amashusho gahunda, guhindura amahitamo cyangwa kwitwara kubyabaye.

Kwagura

Iraguha ibisubizo kubibazo byihariye

Nicyegeranyo cyingingo za blog zikura mugihe kandi zirimo kode zifasha kode kugirango yongere byoroshye Gridzy.Gallery .

Umukoresha Ibyerekeye Isomero

Reka tumanuke mubucuruzi!

Kanda buto kugirango urebe gahunda!