Gridzy.Gallery
JavaScript-Biblioteek
Meest erstaunliche foto erleepnis woo ich kefun hon. Am ën yemant ferxteen wii tas RICHTICH mache!
Milo Persic – een penutser fon te biblioteek

Xnël insicht
1 minut wiiteo lërne
Lërn tas in ploos een minut:
Basis penutsung
Konfiguratsioon
Filter
Aus siin





Stiile fon te xrift
Voorbedefinierte titelstijlen voor einvoudige schnelle Lösungen
Tuu ti pilter uf phase fer ti konfituerter xprooch se siin. Spiile mit te knoop un ti farwe fer ti ketsaycht intekrierte xtile konfituere.
Etiketten & Filter
Fer tayn pilter in een mee strukturiirt aat tsayche .
Tas intekrierte filter systeem is ekstra fleksipel. Tas CSS-selektore fer ti filterung penutst wëre, erlaupnis fer neekst yeete sort filter.











Hooch kompatibel
Nutbar Mit Fiile Lichtkaste
Kombiniire ti galerii mit yeete licht khaste. Ti proop tas es kompatibel is, is neekst 100%. Klik uf ti pilter fer ti licht khaste fon te PhotoSwipe wii een payxpiil se siin.
Es kept blogs artikele mit fërtich kode fraktsioone:
Hooch Fleksipel





Persoonliche stiile mache
Wëns tuu CSS khënst, khanst tuu ti itee fon te galerii soo wiis tuu wilst stiile.
CSS fon ketsaycht payxpiil:
/* 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;
}Tuu yeete HTML penutse .
Tuu khanst neekst yeete HTML penutse. Es këpt ploos phaar restriktsioone. Ti payxpiile woo too ketsaycht sin, tuun al tas selwiche wisioons resultaat pringe.
Eksemplo 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>Eksemplo 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>Mee nutsliche funktsioone
Faul laden
Layt tayn kesiin pilter xnël
Tas tuut ploos ti pilter laate woo ticht pay te sichtbare plats sin. Soo mee bandbreite fer sichtbare pilter.
API
Erlaupst tich fiil mee se mache .
Tas erlaupst tich pilter prokramiire un wech xafe, optsioone ënere orer uf ti ewënte reactualiiseere.
Ferkreesung
Tuu tich mit lësunge fer ti eensiche situatsioone këpe .
Es is en samlung fon blogs artikele woo mit te tsayt wakse un hon hilefs mitel fer ti xprooch fon te layt woo in te xtet woone, fer Gridzy.Gallery laycht se ferprayte.
User Iwer ti Biblioteek
Los uns runer keen uf tas kexeft!
Klik uf te knoop fer ti pleene se kuke!