Gridzy.Gallery
JavaScript Library
ကျွန်တော်တွေ့ဖူးတဲ့ အံ့သြစရာအကောင်းဆုံး ဓာတ်ပုံအတွေ့အကြုံ။ နောက်ဆုံးတော့ တစ်စုံတစ်ယောက်က ဒါကို မှန်ကန်စွာ လုပ်နည်းကို နားလည်သွားပါပြီ။
Milo Persic - စာကြည့်တိုက်အသုံးပြုသူ

ဝိပဿနာ အမြန်
1 မိနစ်ဗီဒီယိုသင်ခန်းစာ
တစ်မိနစ်အတွင်း ဤအရာကို လေ့လာပါ-
အခြေခံအသုံးပြုမှု
ဖွဲ့စည်းမှု
စစ်ထုတ်မှုများ
အသွင်အပြင်





စာတန်းပုံစံများ
လွယ်ကူမြန်ဆန်သော ဖြေရှင်းနည်းများအတွက် ကြိုတင်သတ်မှတ်ထားသော စာတန်းပုံစံများ
ပြင်ဆင်သတ်မှတ်ထားသော စာတန်းစတိုင်ကို ကြည့်ရန် ပုံများကို နှိပ်ပါ။ ပြထားသည့် တပ်ဆင်စတိုင်လ်ကို စီစဉ်သတ်မှတ်ရန် ခလုတ်များနှင့် အရောင်ရွေးချယ်သူများဖြင့် ကစားပါ။
တဂ်များနှင့် စစ်ထုတ်မှုများ
သင့်ပုံများကို ပိုမိုဖွဲ့စည်းပုံဖြင့် ပြသရန်
Built-in filter စနစ်သည် အလွန်ပြောင်းလွယ်ပြင်လွယ်ဖြစ်သည်။ စစ်ထုတ်ခြင်းအတွက် CSS Selectors ကိုအသုံးပြုသည်ဟူသောအချက်သည် မည်သည့် filter အမျိုးအစားနီးပါးကိုမဆို အမှန်တကယ်အသုံးပြုနိုင်ပါသည်။











အလွန်လိုက်ဖက်ပါတယ်။
Lightbox အများအပြားဖြင့် အသုံးပြုနိုင်သည်။
မည်သည့် lightbox နှင့်မဆို ပြခန်းကို ပေါင်းစပ်ပါ။ သဟဇာတဖြစ်နိုင်ခြေသည် 100% နီးပါးဖြစ်သည်။ PhotoSwipe lightbox ကို နမူနာအဖြစ်မြင်ရန် ပုံများကို နှိပ်ပါ။
အဆင်သင့်လုပ်ထားသော ကုဒ်အတိုအထွာများပါရှိသော ဘလော့ဆောင်းပါးများ ရှိပါသည်။
Highly Flexible





စိတ်ကြိုက်ပုံစံများ ဖန်တီးပါ။
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>ပိုမိုအသုံးဝင်သောအင်္ဂါရပ်များ
Lazy Loading
သင်ကြည့်ရှုထားသော ပုံများကို ပိုမြန်စေသည်။
၎င်းသည် မြင်နိုင်သော ဧရိယာနှင့် နီးစပ်သော ပုံများကိုသာ တင်ပါသည်။ ထို့ကြောင့် မြင်နိုင်သောပုံများအတွက် bandwidth ပိုများသည်။
API
များများလုပ်နိုင်ရမယ်။
၎င်းသည် သင့်အား ပုံများကို ပရိုဂရမ်အလိုက် ထည့်သွင်းခြင်းနှင့် ဖယ်ရှားခြင်း၊ ရွေးချယ်မှုများကို ပြောင်းလဲခြင်း သို့မဟုတ် ဖြစ်ရပ်များကို တုံ့ပြန်ခြင်းတို့ကို ခွင့်ပြုနိုင်သည်။
တိုးချဲ့မှုများ
တစ်ဦးချင်းအခြေအနေများအတွက် သင့်အား ဖြေရှင်းချက်ပေးပါသည်။
၎င်းသည် Gridzy.Gallery လွယ်ကူစွာတိုးချဲ့ရန် အချိန်ကြာလာသည်နှင့်အမျှ ကြီးထွားလာကာ အထောက်အကူဖြစ်စေသော ကုဒ်အတိုအထွာများပါရှိသော ဘလော့ဆောင်းပါးများစုစည်းမှုဖြစ်သည်။
အသုံးပြုသူ စာကြည့်တိုက်အကြောင်း
လုပ်ငန်းစလိုက်ကြရအောင်။
အစီအစဉ်များကိုကြည့်ရှုရန် ခလုတ်ကိုနှိပ်ပါ။