-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.html
More file actions
282 lines (228 loc) · 11.6 KB
/
gallery.html
File metadata and controls
282 lines (228 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./assets/img/favicon.ico">
<title>Gallery</title> <script type="module" crossorigin src="./js/app.min.js?v=1774807247398"></script>
<link rel="stylesheet" crossorigin href="./css/app.min.css?v=1774807247398">
</head>
<body>
<div class="wrapper">
<header class="header" data-anim-header="" data-anim-header-scroll="">
<div class="header__container">
<nav class="menu__body">
<a class="menu__logo" href="/docs/index.html">
<img src="./assets/img/logo.jpg" aria-label="Animmaster Logo" width="50" height="50">
</a>
<ul class="menu__list">
<li class="menu__item">
<a class="menu__link" href="/docs/index.html">Documentation</a>
</li>
<li class="menu__item">
<a class="menu__link menu__link--special" target="_blank" href="https://www.patreon.com/collection/1946808?view=condensed">Animmaster PRO Pack</a>
</li>
</ul>
</nav>
</div>
</header>
<main class="page">
<div data-anim-gallerydoc="" class="doc">
<section class="doc-page box-padding">
<div class="doc-page__container">
<!-- ========================================================= -->
<!-- Top -->
<!-- ========================================================= -->
<div class="doc-top">
<a class="doc-top__back" href="/docs/index.html">← Back to Documentation</a>
</div>
<!-- ========================================================= -->
<!-- Hero -->
<!-- ========================================================= -->
<div class="doc-hero" id="top">
<p class="doc-hero__kicker">Documentation</p>
<h1 class="doc-hero__title">
Component: Gallery
<span class="doc-hero__title-sub">LightGallery integration (lightbox + slideshow)</span>
</h1>
<p class="doc-hero__lead">
The Gallery component connects <strong>LightGallery</strong>.
Clicking an image opens it in a lightbox with slideshow controls. It supports regular images,
and can also work with video/iframes depending on LightGallery plugins and settings.
</p>
<div class="doc-actions">
<a class="doc-btn doc-btn--primary doc-btn--pulse" href="https://www.patreon.com/collection/1946808?view=condensed" target="_blank" rel="noreferrer">
<span class="doc-btn__text doc-btn__text--default">
Download <span>Animmaster</span> Vite Template
</span>
<span class="doc-btn__text doc-btn__text--hover">
Save your time — start now
</span>
</a>
</div>
</div>
<div class="doc-layout">
<article class="doc-content">
<!-- ========================================================= -->
<!-- 1) What it does -->
<!-- ========================================================= -->
<section class="doc-section" id="intro" data-anim-watcher="navigator">
<h2 class="doc-h2">What this component does</h2>
<p class="doc-p">
This module turns a set of links into a gallery. Each item should have:
a <strong>full-size file</strong> (for the lightbox) and a <strong>thumbnail/preview</strong>
(for the page grid).
</p>
<div class="doc-callout doc-callout--accent">
<div class="doc-callout__title">Important</div>
<div class="doc-callout__text">
Prepare two versions of assets: <strong>thumb</strong> for previews and <strong>full</strong>
for the lightbox.
This keeps the page fast while still showing high-quality images in the viewer.
</div>
</div>
</section>
<!-- ========================================================= -->
<!-- 2) Location -->
<!-- ========================================================= -->
<section class="doc-section" id="location" data-anim-watcher="navigator">
<h2 class="doc-h2">Component location</h2>
<p class="doc-p">
Files are located in <code>src/components/layout/gallery</code>.
Inside you’ll find:
</p>
<ul class="doc-list">
<li class="doc-list__item">JS file with base settings / initialization.</li>
<li class="doc-list__item">HTML example snippet.</li>
<li class="doc-list__item"><code>assets/</code> folder with LightGallery CSS files.</li>
</ul>
</section>
<!-- ========================================================= -->
<!-- 3) How to enable -->
<!-- ========================================================= -->
<section class="doc-section" id="usage" data-anim-watcher="navigator">
<h2 class="doc-h2">How to use</h2>
<p class="doc-p">
Add the attribute <code>data-anim-gallery</code> to the parent container that contains the gallery
items.
The module will auto-connect when it detects the attribute.
</p>
<div class="codeblock" data-codeblock="">
<div class="codeblock__top">
<div class="codeblock__file">Gallery — basic wrapper</div>
<button class="codeblock__copy" type="button" data-copy="">Copy</button>
</div>
<pre class="codeblock__pre"><code class="codeblock__code"><div data-anim-gallery class="gallery">
...
</div></code></pre>
</div>
</section>
<!-- ========================================================= -->
<!-- 4) Markup example -->
<!-- ========================================================= -->
<section class="doc-section" id="example" data-anim-watcher="navigator">
<h2 class="doc-h2">Markup example</h2>
<p class="doc-p">
The typical structure is: a link to the full image, and inside it — an <code><img></code>
with the thumbnail.
</p>
<div class="codeblock" data-codeblock="">
<div class="codeblock__top">
<div class="codeblock__file">Gallery — HTML example</div>
<button class="codeblock__copy" type="button" data-copy="">Copy</button>
</div>
<pre class="codeblock__pre"><code class="codeblock__code"><div data-anim-gallery class="gallery">
<a href="img/img-full-1.jpg" class="gallery__image">
<img alt="Preview" src="img/img-thumb-1.jpg" class="gallery__preview">
</a>
<a href="img/img-full-2.jpg" class="gallery__image">
<img alt="Preview" src="img/img-thumb-2.jpg" class="gallery__preview">
</a>
...
</div></code></pre>
</div>
<div class="doc-callout">
<div class="doc-callout__title">Note</div>
<div class="doc-callout__text">
Extended features (download button, video/iframe support, thumbnails plugin, etc.)
depend on LightGallery configuration and plugins. Use the official LightGallery docs
to enable the exact controls you need.
</div>
</div>
</section>
<!-- ========================================================= -->
<!-- Download -->
<!-- ========================================================= -->
<section class="doc-section" id="download" data-anim-watcher="navigator">
<h2 class="doc-h2">Download</h2>
<p class="doc-p doc-p--margin-b">
Want a ready-to-use gallery workflow with clean structure and automated component connection?
Download the template and plug the Gallery into your page in minutes.
</p>
<div class="doc-actions">
<a class="doc-btn doc-btn--primary doc-btn--pulse" href="https://www.patreon.com/collection/1946808?view=condensed" target="_blank" rel="noreferrer">
<span class="doc-btn__text doc-btn__text--default">
Download <span>Animmaster</span> Vite Template
</span>
<span class="doc-btn__text doc-btn__text--hover">
Save your time — start now
</span>
</a>
</div>
</section>
<div class="doc-divider"></div>
<!-- ========================================================= -->
<!-- Next -->
<!-- ========================================================= -->
<nav class="doc-next">
<a class="doc-next__link" href="/docs/masonry.html">
Next: Masonry grid component
<span class="doc-next__arrow">→</span>
</a>
</nav>
</article>
<!-- ========================================================= -->
<!-- TOC -->
<!-- ========================================================= -->
<aside class="doc-toc" aria-label="On this page">
<div class="doc-toc__box">
<div class="doc-toc__title">On this page</div>
<ol class="doc-toc__list">
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#intro">Overview</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#location">Location</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#usage">How to
use</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#example">Example</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#download">Download</a></li>
</ol>
</div>
</aside>
</div>
</div>
</section>
</div>
</main>
<footer class="footer" data-anim-footer="">
<div class="footer__container">
<!-- BOTTOM -->
<div class="footer__bottom">
<p class="footer__copy">© 2026 Animmaster</p>
<div class="footer__bug">
<span>Found bug?</span>
<a href="mailto:animmasterstudio@gmail.com">
Report it
</a>
</div>
<div class="footer__author">
Crafted with <span>🤍</span> by
<a target="_blank" href="https://www.instagram.com/animmaster_studio?igsh=MXN0MXkycGxrbDlpag==">
Animmaster
</a>
</div>
</div>
</div>
</footer>
</div>
</body>
</html>