vistaview 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,6 +18,27 @@ A lightweight, modern image lightbox library for the web. Zero dependencies, fra
18
18
  npm install vistaview
19
19
  ```
20
20
 
21
+ ### Using CDN (UMD)
22
+
23
+ For quick prototyping or non-bundler environments, use the UMD build via CDN:
24
+
25
+ ```html
26
+ <!-- unpkg -->
27
+ <link rel="stylesheet" href="https://unpkg.com/vistaview/dist/vistaview.css" />
28
+ <script src="https://unpkg.com/vistaview/dist/vistaview.umd.js"></script>
29
+
30
+ <!-- or jsDelivr -->
31
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vistaview/dist/vistaview.css" />
32
+ <script src="https://cdn.jsdelivr.net/npm/vistaview/dist/vistaview.umd.js"></script>
33
+
34
+ <script>
35
+ // VistaView is available globally
36
+ VistaView.vistaView({
37
+ elements: '#gallery a',
38
+ });
39
+ </script>
40
+ ```
41
+
21
42
  ## Quick Start
22
43
 
23
44
  ### Using anchor elements (recommended)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vistaview",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "A lightweight, zero-dependency image lightbox library with smooth animations and touch support",
5
5
  "keywords": [
6
6
  "image",