Gridzy.Gallery
JavaScript Library
Feem ntau amazing yees duab kuv twb pom. Thaum kawg ib tug neeg nkag siab tias yuav ua li cas RIGHT!
Milo Persic - tus neeg siv ntawm lub tsev qiv ntawv

Kev pom nrawm
1 feeb video tutorial
Kawm qhov no hauv ib feeb xwb:
Kev siv yooj yim
Kev teeb tsa
Cov lim
Qhov tshwm sim





Caption Styles
Predefined caption styles rau kev daws teeb meem yooj yim
Hover cov duab kom pom cov kab lus uas tau teeb tsa. Ua si nrog cov nyees khawm thiab cov xim xaiv los teeb tsa cov qauv tsim hauv.
Cim npe & lim
Txhawm rau tso saib koj cov duab hauv txoj hauv kev ntau dua
Lub built-in lim system yog hloov tau yooj yim heev. Qhov tseeb tias CSS selectors yog siv rau kev lim dej tiag tiag ua rau yuav luag txhua hom lim.











Siab Compatible
Siv tau nrog ntau lub Lightboxes
Ua ke lub gallery nrog txhua lub teeb lub teeb. Qhov tshwm sim uas nws tau tshaj yog yuav luag 100%. Nyem cov duab kom pom PhotoSwipe lightbox ua piv txwv.
Yooj yim heev





Tsim Custom Styles
Yog tias koj paub txog CSS, koj tuaj yeem tsim cov khoom hauv chav ua yeeb yam raws li koj xav tau.
CSS ntawm qhov piv txwv:
/* 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;
}Siv ib qho HTML
Koj tuaj yeem siv yuav luag txhua HTML. Tsuas muaj kev txwv tsawg heev. Cov piv txwv qhia ntawm no ob qho tib si ua rau pom qhov tshwm sim tib yam.
Piv txwv 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>Piv txwv 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>Ntau yam tseem ceeb
Tub nkeeg Loading
Loads koj cov duab saib sai dua
Qhov no tsuas yog cov duab uas nyob ze rau thaj chaw pom. Yog li ntau bandwidth rau cov duab pom.
API
Tso cai rau koj ua ntau yam ntxiv
Qhov no tso cai rau koj ntxiv thiab tshem tawm cov duab programmatically, hloov cov kev xaiv lossis cuam tshuam rau cov xwm txheej.
Extensions
Muab kev daws teeb meem rau koj tus kheej cov xwm txheej
Nws yog ib qho kev sau ntawm cov ntawv blog uas loj hlob dhau sijhawm thiab muaj cov kab lus pab tau kom yooj yim txuas Gridzy.Gallery .
Tus neeg siv hais txog lub tsev qiv ntawv
Cia peb nqis mus ua lag luam!
Nyem lub pob txhawm rau txheeb xyuas cov phiaj xwm!