Gridzy.Gallery
जावास्क्रिप्ट लाइब्रेरी
हमरा भेटल सबसँ अद्भुत फोटो अनुभव। अंत में कियो बुझि गेल अछि जे ई कोना सही तरीका स कयल जाय!
मिलो पर्सिक – पुस्तकालय के एक उपयोगकर्ता

त्वरित अंतर्दृष्टि
1 मिनट के वीडियो ट्यूटोरियल
मात्र एक मिनट मे ई जानू:
मूल प्रयोग
विन्यास
फ़िल्टर
उपस्थिति





कैप्शन शैलियाँ
आसान त्वरित समाधान के लेल पूर्व परिभाषित कैप्शन शैली
विन्यस्त कैप्शन शैली देखबाक लेल छवि सभकेँ होवर करू. दिखायल गेल अंतर्निहित शैली कें कॉन्फ़िगर करय कें लेल बटन आ रंग पिकर कें साथ खेलूं.
टैग एवं फिल्टर
अपन छवि केँ बेसी संरचित तरीका सँ प्रदर्शित करबाक लेल
अंतर्निहित फिल्टर सिस्टम अत्यंत लचीला अछि। ई तथ्य कि 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;
}कोनो एचटीएमएल के प्रयोग करू
अहाँ लगभग कोनो एचटीएमएल के प्रयोग क सकैत छी। बहुत कम प्रतिबंध मात्र अछि। एतय देखाओल गेल उदाहरण दुनू एकहि दृश्य परिणाम दैत अछि ।
उदाहरण १ : १.
<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>उदाहरण २ : १.
<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 विस्तारित करलऽ जाय सकै छै ।
उपयोगकर्ता पुस्तकालय के बारे में
चलू, काज पर उतरि जाइ!
योजना देखबाक लेल बटन पर क्लिक करू !