Gridzy.Gallery
જાવાસ્ક્રિપ્ટ લાઇબ્રેરી
મને મળેલો સૌથી અદ્ભુત ફોટો અનુભવ. આખરે કોઈ સમજે છે કે આ કેવી રીતે કરવું?
મિલો પર્સિક – પુસ્તકાલયનો વપરાશકર્તા

ઝડપી આંતરદૃષ્ટિ
1 મિનિટનું વિડિયો ટ્યુટોરીયલ
માત્ર એક મિનિટમાં આ જાણો:
મૂળભૂત ઉપયોગ
રૂપરેખાંકન
ફિલ્ટર્સ
દેખાવ





કૅપ્શન શૈલીઓ
સરળ ઝડપી ઉકેલો માટે પૂર્વવ્યાખ્યાયિત કૅપ્શન શૈલીઓ
રૂપરેખાંકિત કૅપ્શન શૈલી જોવા માટે છબીઓને હૉવર કરો. બતાવેલ બિલ્ટ-ઇન શૈલીને ગોઠવવા માટે બટનો અને રંગ પીકર સાથે રમો.
ટૅગ્સ અને ફિલ્ટર્સ
તમારી છબીઓને વધુ સંરચિત રીતે પ્રદર્શિત કરવા માટે
બિલ્ટ-ઇન ફિલ્ટર સિસ્ટમ અત્યંત લવચીક છે. હકીકત એ છે કે CSS પસંદગીકારોનો ઉપયોગ ફિલ્ટરિંગ માટે થાય છે તે વાસ્તવમાં લગભગ કોઈપણ પ્રકારના ફિલ્ટરને સક્ષમ કરે છે.











અત્યંત સુસંગત
ઘણા લાઇટબૉક્સ સાથે વાપરી શકાય
કોઈપણ લાઇટબૉક્સ સાથે ગેલેરીને ભેગું કરો. તે સુસંગત હોવાની સંભાવના લગભગ 100% છે. ઉદાહરણ તરીકે ફોટોસ્વાઇપ લાઇટબૉક્સ જોવા માટે છબીઓ પર ક્લિક કરો.
અત્યંત લવચીક





કસ્ટમ શૈલીઓ બનાવો
જો તમે 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;
}કોઈપણ HTML નો ઉપયોગ કરો
તમે લગભગ કોઈપણ HTML નો ઉપયોગ કરી શકો છો. ત્યાં માત્ર બહુ ઓછા પ્રતિબંધો છે. અહીં બતાવેલ ઉદાહરણો બંને સમાન દ્રશ્ય પરિણામ આપે છે.
ઉદાહરણ 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>વધુ ઉપયોગી સુવિધાઓ
સુસ્ત લોડિંગ
તમારી જોયેલી છબીઓને ઝડપથી લોડ કરો
આ ફક્ત તે જ છબીઓને લોડ કરે છે જે દૃશ્યમાન વિસ્તારની નજીક છે. તેથી દૃશ્યમાન છબીઓ માટે વધુ બેન્ડવિડ્થ.
API
તમને ઘણું બધું કરવાની મંજૂરી આપે છે
આ તમને પ્રોગ્રામેટિકલી છબીઓ ઉમેરવા અને દૂર કરવા, વિકલ્પો બદલવા અથવા ઇવેન્ટ્સ પર પ્રતિક્રિયા કરવાની મંજૂરી આપે છે.
એક્સ્ટેન્શન્સ
તમને વ્યક્તિગત પરિસ્થિતિઓ માટે ઉકેલો પ્રદાન કરે છે
તે બ્લોગ લેખોનો સંગ્રહ છે જે સમય જતાં વધે છે અને Gridzy.Gallery સરળતાથી વિસ્તારવા માટે મદદરૂપ કોડ સ્નિપેટ્સ ધરાવે છે.
પુસ્તકાલય વિશે વપરાશકર્તા
ચાલો વ્યવસાય પર ઉતરીએ!
યોજનાઓ તપાસવા માટે બટન પર ક્લિક કરો!