Gridzy.Gallery
JavaScript 函式庫
我發現的最令人驚奇的攝影體驗。終於有人明白如何正確地做到這一點!
Milo Persic – 圖書館的用戶

快速洞察
1分鐘影片教學
只需一分鐘即可了解此內容:
基本用法
配置
過濾器
外貌





標題樣式
預先定義的標題樣式可輕鬆快速地解決問題
將滑鼠停留在圖像上以查看配置的標題樣式。使用按鈕和顏色選擇器來配置顯示的內建樣式。
高度相容
可與許多燈箱一起使用
將畫廊與任何燈箱結合。相容的機率幾乎是100%。按一下影像以檢視 PhotoSwipe 燈箱範例。
高度靈活





建立自訂樣式
如果您熟悉 CSS,則可以按照您想要的方式設定圖庫項目的樣式。
所示範例的 CSS:
/* 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;
}範例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>範例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>使用者關於圖書館
我剛剛將 Gridzy 整合到我的網站中,這是有史以來最好的事情! VIELEN DANK 感謝您為此付出的所有努力。這是我發現的最令人驚嘆的攝影體驗。終於有人明白如何正確地做到這一點!
顯示原文語言(英語)5 顆星(滿分為 5 顆星)
寫為 CodeCanyon 評論
令人難以置信的網格..哇。高度優化的速度..肯定會留意赫爾穆特的更多“藝術”作品
顯示原文語言(英語)5 顆星(滿分為 5 顆星)
寫為 CodeCanyon 評論
這是一個設計非常好的justified網格畫廊,是我迄今為止發現的最好的。它看起來不錯,不礙事,對螢幕尺寸反應良好,有很多有用的選項,沒有不必要的負擔,並且使用靈活。此外,作者反應靈敏,總是樂於助人,專業,友好,並且對 JavaScript 很了解。
顯示原文語言(英語)5 顆星(滿分為 5 顆星)
寫為 CodeCanyon 評論
這個插件太棒了——我以為我需要花幾個小時進行定制,但這是一件輕而易舉的事。我對其進行了調整,使其與高級自訂欄位一起使用,讓我可以完全控制如何透過管理員建立 WordPress 畫廊。謝謝你!
顯示原文語言(英語)5 顆星(滿分為 5 顆星)
寫為 CodeCanyon 評論
讓我們言歸正傳吧!
點擊按鈕查看計劃!





