Gridzy.Gallery
जावास्क्रिप्ट लायब्ररी
म्हाका मेळिल्लो सगळ्यांत अद्भुत फोटो अणभव. निमाणें कोणाक तरी समजता हें कशें करप तें RIGHT!
मिलो पर्सिक – लायब्ररीचो वापरपी

जलद अंतर्दृष्टी
1 मिनटाचो व्हिडियो ट्युटोरियल
फकत एका मिण्टांत हें जाणून घेयात:
मुळावो वापर
संरचना करप
फिल्टर करतात
दिसप





कॅप्शन शैली
सोप्या बेगीन उपायांक पूर्वनिर्धारीत कॅप्शन शैली
संरचीत केल्ली कॅप्शन शैली पळोवपाक प्रतिमा होवर करात. दाखयल्ली बिल्ट-इन शैली संरचीत करपाक बटणां आनी रंग पिकरां कडेन खेळात.
टॅग आनी फिल्टर
तुमचीं प्रतिमा चड संरचीत पद्दतीन दाखोवपाक
बिल्ट-इन फिल्टर प्रणाली अत्यंत लवचीक आसता. CSS निवडपी फिल्टरिंग खातीर वापरतात हें प्रत्यक्षांत चड करून खंयच्याय प्रकारचें फिल्टर सक्षम करता.











अत्यंत सुसंगत
जायत्या लायटबॉक्सां वांगडा वापरपाक मेळटा
खंयच्याय लायटबॉक्स वांगडा गॅलरी एकठांय करात. तो सुसंगत आसा हाची संभाव्यताय सुमार शंबर टक्के आसता. 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: 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: 1 .
<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.Gallery .
वापरपी लायब्ररी विशीं
वेवसायांत देंवया!
येवजण्यो पळोवपाक बटण क्लिक करात!