Gridzy.Gallery
JavaSkript Laybri

Most amazing foto expiriens we a don fain. Fɔ dɔn sɔmbɔdi ɔndastand aw fɔ du dis RAYT!

Milo Persic – wan pɔsin we de yuz di laybri

Kwik Insayt

1 minit vidio tutoriɛl

Lan dis insay jɔs wan minit:

Di bɛsis we fɔ yuz am

Kɔnfigyushɔn fɔ di tin dɛn we dɛn dɔn mek

Filta dɛn

Aw a luk

Sɛlibret di de
Kis di wan dɛn we yu lɛk
Bi klin wit yusɛf
Nɔ fɔgɛt di ɛnjɔymɛnt
Fil di nature

Kapshɔn Stayl dɛn

Prɛdifayn kapshɔn stayl fɔ izi kwik sɔlvishɔn

Hova di pikchɔ dɛn fɔ si di kɔnfigyut kapshɔn stayl. Ple wit di bɔtin dɛn ɛn di kɔlɔ pik dɛn fɔ kɔnfigyut di bilt-in stayl we dɛn sho.

Tag & Filta dɛn

Fɔ sho yu pikchɔ dɛn di we we gɛt mɔ strɔkchɔ

Di filta sistem we dɛn bil insay kin rili fleksibul. Di tru tin se dɛn de yuz CSS sɛlɛktɔ fɔ filta rili de mek ɔlmost ɛni kayn filta ebul.

I rili Kɔmpatibl

Yuzable Wit Bɔku Laytbɔks dɛn

Kɔmbayn di galari wit ɛni laytbɔks. Di prɔbabiliti se i kɔmpitabl na ɔlmost 100%. Klik di pikchɔ dɛn fɔ si di PhotoSwipe laytbɔks as ɛgzampul.

Blog atikul dɛn de wit rɛdi-mɛd kɔd snipet dɛn:

I rili Fleksibul

Sɛlibret di de
Kis di wan dɛn we yu lɛk
Bi klin wit yusɛf
Nɔ fɔgɛt di ɛnjɔymɛnt
Fil di nature

Krio Kastɔm Stayl dɛn

If yu sabi CSS, yu kin stayl di tin dɛn we de na di galari di we aw yu want.

CSS fɔ ɛgzampul we dɛn sho:

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

Yuz ɛni HTML

Yu kin yuz klos to ɛni HTML. Na smɔl tin dɛn nɔmɔ de we de stɔp pipul dɛn fɔ du sɔntin. Di ɛgzampul dɛn we dɛn sho ya, dɛn ɔl tu de mek di sem tin we pɔsin kin si.

Ɛgzampul 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>

Ɛgzampul 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>

Mɔ Tin dɛn we Yu Go Yuz

Les Lod we de lod

Lod yu pikchɔ dɛn we yu dɔn wach fast fast

Dis kin lod di pikchɔ dɛn nɔmɔ we de nia di say we pɔsin kin si. So mɔ bandwidth fɔ pikchɔ dɛn we pɔsin kin si.

API

I de alaw yu fɔ du bɔku ɔda tin dɛn

Dis de mek yu ebul fɔ ad ɛn pul pikchɔ dɛn programmatically, chenj opshɔn dɛn ɔ riak to ivintɛns.

Ɛkstenshɔn dɛn

Gi yu sɔlvishɔn fɔ wan wan sɛnɛriɔ

Na wan kɔleshiɔn fɔ blɔk atikul dɛm we de gro ova tɛm ɛn gɛt ɛp kɔd snipɛt fɔ izi fɔ ɛkstɛnd Gridzy.Gallery .

Yuz Bɔt di Laybri

Mek wi go dɔŋ to biznɛs!

Klik di bɔtin fɔ chɛk di plan dɛn!