Gridzy.Gallery
Puna JavaScript
He wheako whakaahua tino whakamiharo kua kitea e au. Ka mutu ka mohio tetahi ki te mahi i tenei TIKA!
Milo Persic – he kaiwhakamahi o te whare pukapuka

Maramatanga Tere
1 meneti akoranga ataata
Akohia tenei i roto i te meneti noa:
Te whakamahinga taketake
Whirihoranga
Tātari
Te ahua





Ngā Kāhua Tapanga
Ko nga momo tapanga kua tautuhia-mua mo nga otinga tere ngawari
Whakaparohia nga whakaahua kia kite i te ahua tapanga kua whirihorahia. Purei me nga patene me nga kaikokoti tae hei whirihora i te ahua o roto kua whakaatuhia.
Tohu & Tātari
Hei whakaatu i o whakaahua kia pai ake te hanga
He tino ngawari te punaha tātari i hangaia. Ko te mea e whakamahia ana nga kaiwhiriwhiri CSS mo te tātari ka taea te tata ki nga momo tātari.











Tino Hototahi
Ka taea te whakamahi me te maha o nga pouaka rama
Whakakotahitia te taiwhanga me tetahi pouaka rama. Ko te tūponotanga he hototahi he tata ki te 100%. Patohia nga whakaahua kia kite i te pouaka rama PhotoSwipe hei tauira.
Tino Hangawari





Waihangahia nga momo ritenga
Mena kei te mohio koe ki te CSS, ka taea e koe te hanga i nga taonga taiwhanga kia rite ki to hiahia.
CSS o te tauira kua whakaatuhia:
/* 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;
}Whakamahia tetahi HTML
Ka taea e koe te whakamahi tata ki tetahi HTML. He iti noa nga here. Ko nga tauira e whakaatuhia ana i konei ka whakaputa i te hua ataata kotahi.
Tauira 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>Tauira 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>Ētahi atu āhuatanga whai hua
Uta mangere
Ka tere ake te uta i o whakaahua kua tirohia
Ka utaina nga whakaahua e tata ana ki te waahi ka kitea. Na ka nui ake te bandwidth mo nga whakaahua ka kitea.
API
Ka taea e koe te mahi nui atu
Ma tenei ka taea e koe te taapiri me te tango whakaahua ma te hotaka, te huri i nga whiringa, te urupare ranei ki nga huihuinga.
Toronga
Ka whakawhiwhia ki a koe nga otinga mo nga ahuatanga takitahi
He kohinga o nga tuhinga rangitaki ka tipu haere i roto i te waa, kei roto hoki nga mahanga waehere awhina kia ngawari te whakawhānui Gridzy.Gallery .
Kaiwhakamahi mo te Whare Pukapuka
Kia heke tatou ki te pakihi!
Paatohia te paatene hei tirotiro i nga mahere!