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 సులభంగా విస్తరించడానికి ఉపయోగపడే కోడ్ స్నిప్పెట్లను కలిగి ఉంటుంది.
లైబ్రరీ గురించి వినియోగదారు
వ్యాపారానికి దిగుదాం!
ప్లాన్లను తనిఖీ చేయడానికి బటన్ను క్లిక్ చేయండి!