peek-carousel 1.1.1 → 2.0.1

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.
@@ -4,68 +4,96 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>PeekCarousel — JavaScript Carousel Demo and Layouts</title>
7
- <meta name="description" content="Explore PeekCarousel, a dependency-free JavaScript image carousel with Stack, Radial, Classic and Fan shape layouts. Try navigation, playback and CSS themes.">
7
+ <meta name="description" content="Explore four JavaScript carousel layouts: Stack, Radial, Classic and Fan shape. Try touch, keyboard, playback and CSS themes. No runtime dependencies.">
8
8
  <meta name="robots" content="index, follow, max-image-preview:large">
9
- <meta name="theme-color" content="#f6f5f1">
9
+ <meta name="theme-color" content="#ffffff">
10
10
  <meta property="og:type" content="website">
11
11
  <meta property="og:site_name" content="PeekCarousel">
12
12
  <meta property="og:locale" content="en_US">
13
13
  <meta property="og:url" content="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
14
14
  <meta property="og:title" content="PeekCarousel — JavaScript Carousel Demo and Layouts">
15
- <meta property="og:description" content="Explore PeekCarousel, a dependency-free JavaScript image carousel with Stack, Radial, Classic and Fan shape layouts. Try navigation, playback and CSS themes.">
15
+ <meta property="og:description" content="Explore four JavaScript carousel layouts: Stack, Radial, Classic and Fan shape. Try touch, keyboard, playback and CSS themes. No runtime dependencies.">
16
16
  <meta property="og:image" content="https://lledellebell.github.io/peek-carousel/public/assets/share_image.png">
17
17
  <meta property="og:image:type" content="image/png">
18
18
  <meta property="og:image:width" content="1200">
19
19
  <meta property="og:image:height" content="720">
20
- <meta property="og:image:alt" content="PeekCarousel playground with Fan shape cards, layout playground__settings and playback controls">
20
+ <meta property="og:image:alt" content="PeekCarousel on a white background with blue controls and image cards">
21
21
  <meta name="twitter:card" content="summary_large_image">
22
22
  <meta name="twitter:title" content="PeekCarousel — JavaScript Carousel Demo and Layouts">
23
- <meta name="twitter:description" content="Explore PeekCarousel, a dependency-free JavaScript image carousel with Stack, Radial, Classic and Fan shape layouts. Try navigation, playback and CSS themes.">
23
+ <meta name="twitter:description" content="Explore four JavaScript carousel layouts: Stack, Radial, Classic and Fan shape. Try touch, keyboard, playback and CSS themes. No runtime dependencies.">
24
24
  <meta name="twitter:image" content="https://lledellebell.github.io/peek-carousel/public/assets/share_image.png">
25
- <meta name="twitter:image:alt" content="PeekCarousel playground with Fan shape cards, layout playground__settings and playback controls">
25
+ <meta name="twitter:image:alt" content="PeekCarousel on a white background with blue controls and image cards">
26
26
  <link rel="canonical" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
27
- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html","url":"https://lledellebell.github.io/peek-carousel/examples/example-built.html","name":"PeekCarousel — JavaScript Carousel Demo and Layouts","description":"Explore PeekCarousel, a dependency-free JavaScript image carousel with Stack, Radial, Classic and Fan shape layouts. Try navigation, playback and CSS themes.","inLanguage":"en","mainEntity":{"@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source"}},{"@type":"SoftwareSourceCode","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source","name":"PeekCarousel","description":"Explore PeekCarousel, a dependency-free JavaScript image carousel with Stack, Radial, Classic and Fan shape layouts. Try navigation, playback and CSS themes.","codeRepository":"https://github.com/lledellebell/peek-carousel","programmingLanguage":"JavaScript","runtimePlatform":"Web browser","license":"https://opensource.org/license/mit/","url":"https://github.com/lledellebell/peek-carousel"}]}</script>
28
- <link rel="preload" href="../public/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin="anonymous">
27
+ <link rel="alternate" hreflang="en" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
28
+ <link rel="alternate" hreflang="ja" href="https://lledellebell.github.io/peek-carousel/examples/example-built.ja.html">
29
+ <link rel="alternate" hreflang="ko" href="https://lledellebell.github.io/peek-carousel/examples/example-built.ko.html">
30
+ <link rel="alternate" hreflang="x-default" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
31
+ <meta property="og:locale:alternate" content="ja_JP">
32
+ <meta property="og:locale:alternate" content="ko_KR">
33
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html","url":"https://lledellebell.github.io/peek-carousel/examples/example-built.html","name":"PeekCarousel — JavaScript Carousel Demo and Layouts","description":"Explore four JavaScript carousel layouts: Stack, Radial, Classic and Fan shape. Try touch, keyboard, playback and CSS themes. No runtime dependencies.","inLanguage":"en","mainEntity":{"@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source"}},{"@type":"SoftwareSourceCode","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source","name":"PeekCarousel","description":"Explore four JavaScript carousel layouts: Stack, Radial, Classic and Fan shape. Try touch, keyboard, playback and CSS themes. No runtime dependencies.","programmingLanguage":"JavaScript","runtimePlatform":"Web browser","license":"https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE","url":"https://github.com/lledellebell/peek-carousel-docs"}]}</script>
34
+ <link rel="preload" href="../public/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin="anonymous">
29
35
  <link rel="stylesheet" href="../public/fonts/inter-latin.css">
30
- <link rel="icon" href="../public/favicon-32x32.png">
36
+
37
+ <link rel="icon" type="image/png" sizes="16x16" href="../public/favicon-16x16.png">
38
+ <link rel="icon" type="image/png" sizes="32x32" href="../public/favicon-32x32.png">
39
+ <link rel="icon" type="image/svg+xml" sizes="any" href="../public/peek-mark.svg">
31
40
  <link rel="stylesheet" href="../dist/peek-carousel.min.css">
32
41
  <link rel="stylesheet" href="./example.min.css">
42
+
33
43
  </head>
34
44
  <body class="preview">
35
45
  <a class="preview__skip" href="#demo-carousel">Skip to playground</a>
36
46
  <header class="preview__header">
37
- <a class="preview__brand" href="#"><span class="preview__brand_mark" aria-hidden="true">▱</span> PeekCarousel</a>
47
+ <a class="preview__brand" href="#"><img class="preview__brand_mark" src="../public/peek-mark.svg" alt="" width="32" height="32"> PeekCarousel</a>
38
48
  <nav class="preview__nav" aria-label="Main navigation">
39
- <a href="#playground-stage" aria-current="page">Playground</a>
40
- <a href="https://github.com/lledellebell/peek-carousel/blob/master/README.en.md">Docs <span aria-hidden="true">↗</span></a>
41
- <a href="https://github.com/lledellebell/peek-carousel">GitHub <span aria-hidden="true">↗</span></a>
49
+ <a href="#layout-controls" aria-current="page">Playground</a>
50
+ <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">Docs <span aria-hidden="true">↗</span></a>
51
+ <a href="https://github.com/lledellebell/peek-carousel-docs">GitHub <span aria-hidden="true">↗</span></a>
42
52
  </nav>
53
+ <details class="preview__language_menu" id="language-menu"><summary aria-label="Choose language: EN"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6" fill="none" stroke="currentColor"/><path d="M2 8h12M8 2c-3 3-3 9 0 12M8 2c3 3 3 9 0 12" fill="none" stroke="currentColor"/></svg><span>EN</span><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true"><path d="m3 4.5 3 3 3-3" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><nav class="preview__languages" aria-label="Choose language">
54
+ <a href="./example-built.html" lang="en" hreflang="en" aria-label="EN — English" aria-current="page">EN</a>
55
+ <a href="./example-built.ja.html" lang="ja" hreflang="ja" aria-label="日本語">日本語</a>
56
+ <a href="./example-built.ko.html" lang="ko" hreflang="ko" aria-label="한국어">한국어</a>
57
+ </nav></details>
43
58
  </header>
44
59
  <main>
45
60
  <section class="preview__hero" aria-labelledby="hero-title">
46
- <p class="preview__eyebrow"><span class="preview__status" aria-hidden="true"></span> SMALL LIBRARY. A LITTLE MORE CHARACTER.</p>
47
- <h1 id="hero-title">PeekCarousel.<br><span>A different perspective.</span></h1>
48
- <div class="preview__intro">
49
- <p>A dependency-free JavaScript image carousel.<br>Explore Stack, Radial, Classic and Fan shape layouts.</p>
50
- <a class="preview__link" href="https://github.com/lledellebell/peek-carousel/blob/master/README.en.md#installation">Make it yours <span aria-hidden="true">↗</span></a>
51
- </div>
52
- <nav class="preview__links" aria-label="Playground guide"><a href="#carousel-layouts">Compare layouts</a><a href="#getting-started">Starter code</a><a href="#carousel-questions">Questions</a></nav>
53
- </section>
54
- <section class="playground" aria-labelledby="playground-title">
61
+ <div class="preview__hero_copy">
62
+ <p class="preview__eyebrow"><svg class="preview__tagline_icon" width="18" height="18" viewBox="0 0 64 64" fill="none" aria-hidden="true" focusable="false"><rect x="6" y="15" width="32" height="40" rx="7" transform="rotate(-12 22 35)" stroke="currentColor" stroke-width="3"/><rect x="24" y="7" width="32" height="44" rx="7" fill="currentColor"/><path d="M47 17v24" stroke="white" stroke-width="3" stroke-linecap="round"/></svg><span class="preview__hero_tagline">A SMALL LIBRARY. A NEW PERSPECTIVE.</span></p>
63
+ <h1 id="hero-title"><span>Four layouts. </span><span class="preview__hero_accent">One carousel.</span></h1>
64
+ </div>
65
+ <div class="preview__hero_summary">
66
+ <div class="preview__intro"><p>A JavaScript carousel with no runtime dependencies.<br>Switch layouts. Try touch, keyboard and playback controls.</p></div>
67
+ <div class="preview__hero_actions">
68
+ <a class="preview__hero_action" href="#layout-controls">Try the layouts<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10m-4-4 4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
69
+ <a class="preview__link" href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md#installation">Install guide<span aria-hidden="true">↗</span></a>
70
+ </div>
71
+ <div class="preview__install_wrapper"><div class="preview__install"><code id="install-command" tabindex="0">npm install peek-carousel</code><button class="preview__install_copy" id="install-copy" type="button" aria-label="Copy code: npm install peek-carousel" data-pending="Copying..." data-success="Code copied" data-fallback="Code selected. Copy it with your keyboard." disabled><svg width="18" height="18" viewBox="0 0 18 18" aria-hidden="true"><rect x="6" y="6" width="9" height="9" rx="2" fill="none" stroke="currentColor" stroke-width="1.4"/><path d="M11 3H5a2 2 0 0 0-2 2v6" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg></button></div><p id="install-copy-status" class="preview__install_status" role="status"></p></div>
72
+ </div>
73
+ </section>
74
+ <section class="playground playground__gallery" aria-labelledby="playground-title">
55
75
  <div class="playground__preview">
56
76
  <div class="playground__toolbar">
57
- <h2 class="preview__eyebrow" id="playground-title">CAROUSEL PLAYGROUND</h2>
58
- <span class="playground__live"><span class="preview__status" aria-hidden="true"></span> Live preview</span>
77
+ <h2 class="preview__eyebrow" id="playground-title"><span class="preview__section_number" aria-hidden="true">01</span>THE PLAYGROUND</h2>
78
+ <span class="playground__live"><svg class="playground__live_icon" width="18" height="18" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false"><rect x="3" y="5" width="18" height="14" rx="4" stroke="currentColor" stroke-width="1.5"/><path d="m10 9 5 3-5 3Z" fill="currentColor"/></svg>Live preview</span>
59
79
  </div>
80
+ <div class="playground__mode_bar" id="layout-controls" tabindex="-1"><h3 id="settings-title">Layout mode selection</h3>
81
+ <div class="playground__layout_picker" role="group" aria-label="Layout mode selection">
82
+ <button type="button" class="playground__layout" data-layout="stack" data-description="A familiar stack. A little room for discovery." aria-pressed="true" disabled><span>Stack</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
83
+ <button type="button" class="playground__layout" data-layout="radial" data-description="A new perspective, with every turn." aria-pressed="false" disabled><span>Radial</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
84
+ <button type="button" class="playground__layout" data-layout="classic" data-description="A simple rhythm. One frame at a time." aria-pressed="false" disabled><span>Classic</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
85
+ <button type="button" class="playground__layout" data-layout="fan" data-description="Spread out the possibilities. Find your next view." aria-pressed="false" disabled><span>Fan shape</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
86
+ </div></div>
87
+ <p class="playground__quick_help" id="gallery-quick-help">Drag or focus the gallery and use ← / →.</p>
60
88
  <noscript><p>The interactive preview needs JavaScript. Layout descriptions and starter code are available below.</p></noscript>
61
89
  <div class="playground__stage" id="playground-stage" tabindex="-1">
62
90
  <p class="playground__label" data-layout-label>01 / STACK</p>
63
- <div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="Image gallery" aria-roledescription="carousel" aria-describedby="gallery-help">
91
+ <div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="Image gallery" aria-roledescription="carousel" data-demo-a11y="{&quot;slide&quot;:&quot;slide&quot;,&quot;position&quot;:&quot;{current} of {total}&quot;,&quot;show&quot;:&quot;Show slide {current} of {total}&quot;,&quot;choose&quot;:&quot;Choose a slide&quot;,&quot;previous&quot;:&quot;Previous slide&quot;,&quot;next&quot;:&quot;Next slide&quot;,&quot;start&quot;:&quot;Start automatic slide rotation&quot;,&quot;stop&quot;:&quot;Stop automatic slide rotation&quot;}" aria-describedby="gallery-quick-help">
64
92
  <div class="peek-carousel__track">
65
93
  <div class="peek-carousel__item">
66
94
  <figure class="peek-carousel__figure">
67
95
  <img class="peek-carousel__image" src="https://picsum.photos/id/1015/650/490.webp" alt="Rocky mountains above a blue fjord" width="650" height="490">
68
- <figcaption class="peek-carousel__caption"><span class="preview__caption_title">The quiet between</span><span class="preview__caption_subtitle">Rock, water & open skies</span></figcaption>
96
+ <figcaption class="peek-carousel__caption"><span class="preview__caption_title">The quiet between</span><span class="preview__caption_subtitle">Rock, water &amp; open skies</span></figcaption>
69
97
  </figure>
70
98
  </div>
71
99
  <div class="peek-carousel__item">
@@ -94,60 +122,49 @@
94
122
  </div>
95
123
  </div>
96
124
  </div>
97
- <p class="playground__hint">DRAG TO EXPLORE <span aria-hidden="true">⟷</span></p>
98
125
  </div>
99
126
  <p class="playground__description" data-layout-description aria-live="polite">A familiar stack. A little room for discovery.</p>
100
127
  </div>
101
- <aside class="playground__settings" aria-labelledby="settings-title">
102
- <p class="preview__eyebrow">MAKE IT MOVE</p>
103
- <h2 id="settings-title">Same images.<br>Different energy.</h2>
104
- <p class="playground__settings_intro">Pick a layout. Find your flow.</p>
105
- <div class="playground__layout_picker" role="group" aria-label="Layout mode selection">
106
- <button type="button" class="playground__layout" data-layout="stack" aria-pressed="true"><span class="playground__layout_mark" aria-hidden="true">▱</span><span>Stack</span><span class="playground__layout_number" aria-hidden="true">01</span></button>
107
- <button type="button" class="playground__layout" data-layout="radial" aria-pressed="false"><span class="playground__layout_mark" aria-hidden="true">◉</span><span>Radial</span><span class="playground__layout_number" aria-hidden="true">02</span></button>
108
- <button type="button" class="playground__layout" data-layout="classic" aria-pressed="false"><span class="playground__layout_mark" aria-hidden="true">▤</span><span>Classic</span><span class="playground__layout_number" aria-hidden="true">03</span></button>
109
- <button type="button" class="playground__layout" data-layout="fan" aria-pressed="false"><span class="playground__layout_mark" aria-hidden="true">⤴</span><span>Fan shape</span><span class="playground__layout_number" aria-hidden="true">04</span></button>
110
- </div>
111
- <fieldset class="playground__toggles"><legend>THE LITTLE DETAILS</legend>
128
+ <div class="playground__settings">
129
+ <details class="playground__options"><summary>Playback and navigation settings<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="m4 6 4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></summary><div class="playground__options_content"><fieldset class="playground__toggles"><legend>Playback and navigation settings</legend>
112
130
  <label class="playground__toggle" for="show-navigation"><span>Arrow navigation</span><input type="checkbox" role="switch" id="show-navigation" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
113
131
  <label class="playground__toggle" for="show-counter"><span>Slide counter</span><input type="checkbox" role="switch" id="show-counter" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
114
132
  <label class="playground__toggle" for="show-indicators"><span>Progress indicators</span><input type="checkbox" role="switch" id="show-indicators" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
115
133
  <label class="playground__toggle" for="show-auto-rotate-button"><span>Playback control</span><input type="checkbox" role="switch" id="show-auto-rotate-button" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
116
- </fieldset>
117
- <details class="playground__help"><summary>Made for every interaction <span aria-hidden="true">+</span></summary><p id="gallery-help">Drag or swipe a card. Use the mouse wheel over the gallery, or focus the gallery and use ← / →. Home / End jump to the edges; Space toggles playback. Auto-rotation pauses when you enter the gallery or move focus to its controls.</p></details>
118
- </aside>
134
+ </fieldset><div class="playground__help"><h3>Made for every interaction</h3><p id="gallery-help">Drag or swipe a card. Use the mouse wheel over the gallery, or focus the gallery and use ← / →. Home / End jump to the edges; Space toggles playback. Auto-rotation pauses when you enter the gallery or move focus to its controls.</p></div></div></details>
135
+ </div>
119
136
  </section>
120
137
  <section class="preview__layouts" id="carousel-layouts" aria-labelledby="layouts-title">
121
- <div class="preview__section_intro"><p class="preview__eyebrow">PICK YOUR PERSPECTIVE</p><h2 id="layouts-title">Four JavaScript carousel layouts.</h2><p>Use the <code>layoutMode</code> option to choose a layout. All four support looping navigation, touch, mouse and playback controls.</p></div>
122
- <div class="preview__layout_grid"><article id="layout-stack"><h3>Stack</h3><p>Overlapping cards keep the current image prominent while its neighbors peek out from either side.</p><code>layoutMode: 'stack'</code></article>
123
- <article id="layout-radial"><h3>Radial</h3><p>Cards rotate around a three-dimensional ring, bringing the selected image to the front.</p><code>layoutMode: 'radial'</code></article>
124
- <article id="layout-classic"><h3>Classic</h3><p>Images move horizontally in a familiar, continuously wrapping slider.</p><code>layoutMode: 'classic'</code></article>
125
- <article id="layout-fan"><h3>Fan shape</h3><p>Up to five cards form a fan. Edge cards recycle behind the foreground cards without a fade-in effect.</p><code>layoutMode: 'fan'</code></article></div>
138
+ <div class="preview__section_intro"><p class="preview__eyebrow"><span class="preview__section_number" aria-hidden="true">02</span>SAME CONTENT. NEW CHARACTER.</p><h2 id="layouts-title">Four JavaScript carousel layouts.</h2><p>Choose a layout with layoutMode. Every layout supports looping navigation, touch, mouse and playback controls.</p></div>
139
+ <div class="preview__layout_grid"><article id="layout-stack" data-layout-card="stack" data-current="true"><div class="preview__layout_art" data-layout-art="stack" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Stack</h3><p>Overlapping cards keep the current image prominent while neighbors peek out from either side.</p><code>layoutMode: 'stack'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="stack" aria-current="true" aria-label="Stack — Playground">Playground<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article>
140
+ <article id="layout-radial" data-layout-card="radial" data-current="false"><div class="preview__layout_art" data-layout-art="radial" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Radial</h3><p>Cards rotate around a three-dimensional ring, bringing the selected image to the front.</p><code>layoutMode: 'radial'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="radial" aria-current="false" aria-label="Radial — Playground">Playground<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article>
141
+ <article id="layout-classic" data-layout-card="classic" data-current="false"><div class="preview__layout_art" data-layout-art="classic" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Classic</h3><p>Images move horizontally in a familiar, continuously wrapping slider.</p><code>layoutMode: 'classic'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="classic" aria-current="false" aria-label="Classic — Playground">Playground<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article>
142
+ <article id="layout-fan" data-layout-card="fan" data-current="false"><div class="preview__layout_art" data-layout-art="fan" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Fan shape</h3><p>Up to five cards form a fan. Edge cards move behind the foreground cards without fading in.</p><code>layoutMode: 'fan'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="fan" aria-current="false" aria-label="Fan shape — Playground">Playground<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article></div>
126
143
  </section>
127
144
  <section class="preview__usage" id="getting-started" aria-labelledby="usage-title">
128
- <div><p class="preview__eyebrow">LESS SETUP. MORE PLAY.</p><h2 id="usage-title">Start your JavaScript carousel.</h2><p>Add a <code>.peek-carousel__track</code> and <code>.peek-carousel__item</code> elements inside <code>#gallery-carousel</code>. Load the CSS and initialize once the markup is in the DOM.</p><a class="preview__link" href="https://github.com/lledellebell/peek-carousel/blob/master/README.en.md">Explore the docs <span aria-hidden="true">↗</span></a></div>
129
- <figure class="preview__code"><figcaption class="preview__code_heading">your-next-gallery.js</figcaption><pre tabindex="0" role="region" aria-label="JavaScript starter example"><code data-demo-code>import PeekCarousel from 'peek-carousel';
130
- import 'peek-carousel/dist/peek-carousel.css';
145
+ <div><p class="preview__eyebrow"><span class="preview__section_number" aria-hidden="true">03</span>LESS SETUP. MORE PLAY.</p><h2 id="usage-title">A few lines. Endless possibilities.</h2><p>Add .peek-carousel__track and .peek-carousel__item elements inside #gallery-carousel. Load the CSS and initialize after the markup is in the DOM.</p><a class="preview__link" href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">Explore the docs <span aria-hidden="true">↗</span></a></div>
146
+ <figure class="preview__code"><figcaption class="preview__code_heading"><span data-code-filename>gallery.js</span><button class="preview__code_copy" id="starter-copy" type="button" data-pending="Copying..." data-success="Code copied" data-fallback="Code selected. Copy it with your keyboard." disabled>Copy code</button></figcaption><div class="preview__code_tabs" role="tablist" aria-label="JavaScript starter example"><button type="button" role="tab" id="starter-tab-vanilla" data-code-format="vanilla" aria-controls="starter-panel" aria-selected="true" tabindex="0" disabled>Vanilla JS</button><button type="button" role="tab" id="starter-tab-react" data-code-format="react" aria-controls="starter-panel" aria-selected="false" tabindex="-1" disabled>React</button><button type="button" role="tab" id="starter-tab-cdn" data-code-format="cdn" aria-controls="starter-panel" aria-selected="false" tabindex="-1" disabled>CDN</button></div><pre id="starter-panel" tabindex="0" role="tabpanel" aria-labelledby="starter-tab-vanilla"><code data-demo-code>import PeekCarousel from &#39;peek-carousel&#39;;
147
+ import &#39;peek-carousel/dist/peek-carousel.css&#39;;
131
148
 
132
- new PeekCarousel('#gallery-carousel', {
133
- layoutMode: 'stack',
149
+ new PeekCarousel(&#39;#gallery-carousel&#39;, {
150
+ layoutMode: &#39;stack&#39;,
134
151
  startIndex: 0,
135
- });</code></pre></figure>
152
+ });</code></pre><p class="preview__code_status" id="starter-copy-status" role="status"></p></figure>
136
153
  </section>
137
154
  <section class="preview__questions" id="carousel-questions" aria-labelledby="questions-title">
138
- <div class="preview__section_intro"><p class="preview__eyebrow">A FEW USEFUL ANSWERS</p><h2 id="questions-title">About PeekCarousel.</h2></div>
139
- <dl>
140
- <div><dt>Does PeekCarousel need React or another framework?</dt><dd>No. PeekCarousel is a vanilla JavaScript library with no runtime dependencies. It provides ES module, CommonJS and browser UMD builds.</dd></div>
141
- <div><dt>Can I use TypeScript or a Python/Go web project?</dt><dd>TypeScript projects can use the included option and instance declarations with ESM, CommonJS or bundlers. Python, Go and other web servers can serve the same browser JS/CSS. This is browser integration, not a native server-language API. See the <a href="https://github.com/lledellebell/peek-carousel/blob/master/docs/integrations.md">project integration guide</a>.</dd></div>
142
- <div><dt>Which controls can I try in this playground?</dt><dd>Drag, swipe or use the mouse wheel over the gallery. Focus the gallery for arrow keys, Home, End and Space. Toggle arrows, the counter, indicators and the playback button in the settings panel.</dd></div>
143
- <div><dt>Can I customize the carousel styles?</dt><dd>Yes. CSS custom properties control card corners, shadows, colors and controls. See the <a href="./custom-theme.html">CSS theme playground</a> for a separate integration example.</dd></div>
144
- <div><dt>Can I use PeekCarousel in a commercial project?</dt><dd>The library is <a href="https://github.com/lledellebell/peek-carousel/blob/master/LICENSE">MIT licensed</a>. The example photographs are provided by <a href="https://picsum.photos/">Lorem Picsum</a>; replace them with images you have permission to use.</dd></div>
145
- <div><dt>What remains available without JavaScript?</dt><dd>The layout descriptions and starter code on this page are static HTML. The interactive carousel and live controls require JavaScript.</dd></div>
146
- </dl>
147
- <p class="preview__sources">Check the <a href="https://github.com/lledellebell/peek-carousel/blob/master/README.en.md">usage documentation</a> and <a href="https://github.com/lledellebell/peek-carousel">source repository</a> for API details and implementation.</p>
155
+ <div class="preview__section_intro"><p class="preview__eyebrow"><span class="preview__section_number" aria-hidden="true">04</span>GOOD TO KNOW</p><h2 id="questions-title">A few useful answers.</h2></div>
156
+ <div class="preview__faq_list">
157
+ <details open><summary>Do I need React or another framework?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>No. PeekCarousel is vanilla JavaScript with no runtime dependencies. ESM, CommonJS and browser UMD builds are included.</p></div></details>
158
+ <details open><summary>Can I use TypeScript or a Python/Go project?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>TypeScript declarations are included. Other web servers can serve the same browser JavaScript and CSS; there is no native server-language API. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/docs/integrations.md">Integration guide</a></p></div></details>
159
+ <details open><summary>Which controls can I try?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>Drag, swipe or use the mouse wheel. Focus the gallery for arrow keys, Home, End and Space. The settings panel toggles navigation, the counter, indicators and playback.</p></div></details>
160
+ <details><summary>Can I customize the styles?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>Yes. CSS custom properties control card corners, shadows, colors and controls. <a href="./custom-theme.html">CSS theme playground</a></p></div></details>
161
+ <details><summary>Can I use it commercially?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>Yes, in your own applications, with the required notices and clear attribution. Standalone redistribution of new covered library or template material requires permission. Existing MIT rights and image rights remain separate.</p></div></details>
162
+ <details><summary>What works without JavaScript?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>Layout descriptions, starter code, language links and these answers are static HTML. The interactive preview requires JavaScript.</p></div></details>
163
+ </div>
164
+ <p class="preview__sources"><a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">Source and API documentation <span aria-hidden="true">↗</span></a></p>
148
165
  </section>
149
166
  </main>
150
- <footer class="preview__footer"><span>PeekCarousel <span class="preview__footer_note">— Built for the in-between.</span></span><span>Vanilla JavaScript · <a href="https://github.com/lledellebell/peek-carousel/blob/master/LICENSE">MIT license</a></span><small class="preview__copyright">© 2025 PeekCarousel · © 2026 PeekCarousel contributors. <a href="https://github.com/lledellebell/peek-carousel/blob/master/COPYRIGHT.md">Copyright &amp; permitted reuse</a> · <a href="https://github.com/lledellebell/peek-carousel/blob/master/THIRD_PARTY_NOTICES.md">Image rights &amp; credits</a></small></footer>
167
+ <footer class="preview__footer"><span><strong class="preview__footer_brand">PeekCarousel</strong><span class="preview__footer_note">— A little more perspective.</span></span><span>Vanilla JavaScript · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE" >Application-use terms</a></span><small class="preview__copyright">© 2025 PeekCarousel · © 2026 PeekCarousel contributors. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/COPYRIGHT.md">Copyright & permitted reuse</a> · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/THIRD_PARTY_NOTICES.md">Image rights & credits</a></small></footer>
151
168
  <script src="../dist/peek-carousel.js"></script>
152
169
  <script src="./example.min.js"></script>
153
170
  </body>
@@ -0,0 +1,172 @@
1
+ <!doctype html>
2
+ <html lang="ja">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>PeekCarousel — JavaScript カルーセルのデモと4つのレイアウト</title>
7
+ <meta name="description" content="Stack・Radial・Classic・Fan shapeの4つのレイアウトを体験。タッチ操作、キーボード、自動再生、CSSテーマに対応した、依存ライブラリ不要のJavaScriptカルーセルです。">
8
+ <meta name="robots" content="index, follow, max-image-preview:large">
9
+ <meta name="theme-color" content="#ffffff">
10
+ <meta property="og:type" content="website">
11
+ <meta property="og:site_name" content="PeekCarousel">
12
+ <meta property="og:locale" content="ja_JP">
13
+ <meta property="og:url" content="https://lledellebell.github.io/peek-carousel/examples/example-built.ja.html">
14
+ <meta property="og:title" content="PeekCarousel — JavaScript カルーセルのデモと4つのレイアウト">
15
+ <meta property="og:description" content="Stack・Radial・Classic・Fan shapeの4つのレイアウトを体験。タッチ操作、キーボード、自動再生、CSSテーマに対応した、依存ライブラリ不要のJavaScriptカルーセルです。">
16
+ <meta property="og:image" content="https://lledellebell.github.io/peek-carousel/public/assets/share_image.png">
17
+ <meta property="og:image:type" content="image/png">
18
+ <meta property="og:image:width" content="1200">
19
+ <meta property="og:image:height" content="720">
20
+ <meta property="og:image:alt" content="白い背景に青いコントロールと写真カードを配置したPeekCarousel">
21
+ <meta name="twitter:card" content="summary_large_image">
22
+ <meta name="twitter:title" content="PeekCarousel — JavaScript カルーセルのデモと4つのレイアウト">
23
+ <meta name="twitter:description" content="Stack・Radial・Classic・Fan shapeの4つのレイアウトを体験。タッチ操作、キーボード、自動再生、CSSテーマに対応した、依存ライブラリ不要のJavaScriptカルーセルです。">
24
+ <meta name="twitter:image" content="https://lledellebell.github.io/peek-carousel/public/assets/share_image.png">
25
+ <meta name="twitter:image:alt" content="白い背景に青いコントロールと写真カードを配置したPeekCarousel">
26
+ <link rel="canonical" href="https://lledellebell.github.io/peek-carousel/examples/example-built.ja.html">
27
+ <link rel="alternate" hreflang="en" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
28
+ <link rel="alternate" hreflang="ja" href="https://lledellebell.github.io/peek-carousel/examples/example-built.ja.html">
29
+ <link rel="alternate" hreflang="ko" href="https://lledellebell.github.io/peek-carousel/examples/example-built.ko.html">
30
+ <link rel="alternate" hreflang="x-default" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
31
+ <meta property="og:locale:alternate" content="en_US">
32
+ <meta property="og:locale:alternate" content="ko_KR">
33
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.ja.html","url":"https://lledellebell.github.io/peek-carousel/examples/example-built.ja.html","name":"PeekCarousel — JavaScript カルーセルのデモと4つのレイアウト","description":"Stack・Radial・Classic・Fan shapeの4つのレイアウトを体験。タッチ操作、キーボード、自動再生、CSSテーマに対応した、依存ライブラリ不要のJavaScriptカルーセルです。","inLanguage":"ja","mainEntity":{"@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source"}},{"@type":"SoftwareSourceCode","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.html#library-source","name":"PeekCarousel","description":"Stack・Radial・Classic・Fan shapeの4つのレイアウトを体験。タッチ操作、キーボード、自動再生、CSSテーマに対応した、依存ライブラリ不要のJavaScriptカルーセルです。","programmingLanguage":"JavaScript","runtimePlatform":"Web browser","license":"https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE","url":"https://github.com/lledellebell/peek-carousel-docs"}]}</script>
34
+ <link rel="preload" href="../public/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin="anonymous">
35
+ <link rel="stylesheet" href="../public/fonts/inter-latin.css">
36
+ <link rel="preload" href="../public/fonts/noto-sans-ja.woff2" as="font" type="font/woff2" crossorigin="anonymous">
37
+ <link rel="stylesheet" href="../public/fonts/noto-sans-ja.css">
38
+ <link rel="icon" type="image/png" sizes="16x16" href="../public/favicon-16x16.png">
39
+ <link rel="icon" type="image/png" sizes="32x32" href="../public/favicon-32x32.png">
40
+ <link rel="icon" type="image/svg+xml" sizes="any" href="../public/peek-mark.svg">
41
+ <link rel="stylesheet" href="../dist/peek-carousel.min.css">
42
+ <link rel="stylesheet" href="./example.min.css">
43
+
44
+ </head>
45
+ <body class="preview">
46
+ <a class="preview__skip" href="#demo-carousel">デモへ移動</a>
47
+ <header class="preview__header">
48
+ <a class="preview__brand" href="#"><img class="preview__brand_mark" src="../public/peek-mark.svg" alt="" width="32" height="32"> PeekCarousel</a>
49
+ <nav class="preview__nav" aria-label="メインナビゲーション">
50
+ <a href="#layout-controls" aria-current="page">デモ</a>
51
+ <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">ドキュメント <span aria-hidden="true">↗</span></a>
52
+ <a href="https://github.com/lledellebell/peek-carousel-docs">GitHub <span aria-hidden="true">↗</span></a>
53
+ </nav>
54
+ <details class="preview__language_menu" id="language-menu"><summary aria-label="言語を選択: 日本語"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6" fill="none" stroke="currentColor"/><path d="M2 8h12M8 2c-3 3-3 9 0 12M8 2c3 3 3 9 0 12" fill="none" stroke="currentColor"/></svg><span>日本語</span><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true"><path d="m3 4.5 3 3 3-3" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><nav class="preview__languages" aria-label="言語を選択">
55
+ <a href="./example-built.html" lang="en" hreflang="en" aria-label="EN — English">EN</a>
56
+ <a href="./example-built.ja.html" lang="ja" hreflang="ja" aria-label="日本語" aria-current="page">日本語</a>
57
+ <a href="./example-built.ko.html" lang="ko" hreflang="ko" aria-label="한국어">한국어</a>
58
+ </nav></details>
59
+ </header>
60
+ <main>
61
+ <section class="preview__hero" aria-labelledby="hero-title">
62
+ <div class="preview__hero_copy">
63
+ <p class="preview__eyebrow"><svg class="preview__tagline_icon" width="18" height="18" viewBox="0 0 64 64" fill="none" aria-hidden="true" focusable="false"><rect x="6" y="15" width="32" height="40" rx="7" transform="rotate(-12 22 35)" stroke="currentColor" stroke-width="3"/><rect x="24" y="7" width="32" height="44" rx="7" fill="currentColor"/><path d="M47 17v24" stroke="white" stroke-width="3" stroke-linecap="round"/></svg><span class="preview__hero_tagline">小さなライブラリ。新しい視点。</span></p>
64
+ <h1 id="hero-title"><span>4つのレイアウト。</span><span class="preview__hero_accent">ひとつの体験。</span></h1>
65
+ </div>
66
+ <div class="preview__hero_summary">
67
+ <div class="preview__intro"><p>依存ライブラリ不要のJavaScriptカルーセル。<br>タッチ・キーボード・再生に対応。</p></div>
68
+ <div class="preview__hero_actions">
69
+ <a class="preview__hero_action" href="#layout-controls">レイアウトを試す<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10m-4-4 4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
70
+ <a class="preview__link" href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md#installation">インストール<span aria-hidden="true">↗</span></a>
71
+ </div>
72
+ <div class="preview__install_wrapper"><div class="preview__install"><code id="install-command" tabindex="0">npm install peek-carousel</code><button class="preview__install_copy" id="install-copy" type="button" aria-label="コードをコピー: npm install peek-carousel" data-pending="コピー中..." data-success="コードをコピーしました" data-fallback="コードを選択してコピーしてください。" disabled><svg width="18" height="18" viewBox="0 0 18 18" aria-hidden="true"><rect x="6" y="6" width="9" height="9" rx="2" fill="none" stroke="currentColor" stroke-width="1.4"/><path d="M11 3H5a2 2 0 0 0-2 2v6" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg></button></div><p id="install-copy-status" class="preview__install_status" role="status"></p></div>
73
+ </div>
74
+ </section>
75
+ <section class="playground playground__gallery" aria-labelledby="playground-title">
76
+ <div class="playground__preview">
77
+ <div class="playground__toolbar">
78
+ <h2 class="preview__eyebrow" id="playground-title"><span class="preview__section_number" aria-hidden="true">01</span>カルーセルを体験</h2>
79
+ <span class="playground__live"><svg class="playground__live_icon" width="18" height="18" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false"><rect x="3" y="5" width="18" height="14" rx="4" stroke="currentColor" stroke-width="1.5"/><path d="m10 9 5 3-5 3Z" fill="currentColor"/></svg>ライブプレビュー</span>
80
+ </div>
81
+ <div class="playground__mode_bar" id="layout-controls" tabindex="-1"><h3 id="settings-title">レイアウトの選択</h3>
82
+ <div class="playground__layout_picker" role="group" aria-label="レイアウトの選択">
83
+ <button type="button" class="playground__layout" data-layout="stack" data-description="重なりの先に、次の発見。" aria-pressed="true" disabled><span>Stack</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
84
+ <button type="button" class="playground__layout" data-layout="radial" data-description="回すたびに、新しい視点。" aria-pressed="false" disabled><span>Radial</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
85
+ <button type="button" class="playground__layout" data-layout="classic" data-description="一枚ずつ、心地よいリズム。" aria-pressed="false" disabled><span>Classic</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
86
+ <button type="button" class="playground__layout" data-layout="fan" data-description="扇のように広がる、次の景色。" aria-pressed="false" disabled><span>Fan shape</span><svg class="playground__layout_check" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
87
+ </div></div>
88
+ <p class="playground__quick_help" id="gallery-quick-help">ドラッグ、またはフォーカスして ← / → で移動。</p>
89
+ <noscript><p>操作するにはJavaScriptが必要です。レイアウトの説明とコード例はそのまま読めます。</p></noscript>
90
+ <div class="playground__stage" id="playground-stage" tabindex="-1">
91
+ <p class="playground__label" data-layout-label>01 / STACK</p>
92
+ <div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="写真ギャラリー" aria-roledescription="カルーセル" data-demo-a11y="{&quot;slide&quot;:&quot;スライド&quot;,&quot;position&quot;:&quot;全{total}枚中{current}枚目&quot;,&quot;show&quot;:&quot;全{total}枚中{current}枚目を表示&quot;,&quot;choose&quot;:&quot;スライドを選択&quot;,&quot;previous&quot;:&quot;前のスライド&quot;,&quot;next&quot;:&quot;次のスライド&quot;,&quot;start&quot;:&quot;自動再生を開始&quot;,&quot;stop&quot;:&quot;自動再生を停止&quot;}" aria-describedby="gallery-quick-help">
93
+ <div class="peek-carousel__track">
94
+ <div class="peek-carousel__item">
95
+ <figure class="peek-carousel__figure">
96
+ <img class="peek-carousel__image" src="https://picsum.photos/id/1015/650/490.webp" alt="青いフィヨルドの上にそびえる岩山" width="650" height="490">
97
+ <figcaption class="peek-carousel__caption"><span class="preview__caption_title">静けさのあいだ</span><span class="preview__caption_subtitle">岩と水、広がる空</span></figcaption>
98
+ </figure>
99
+ </div>
100
+ <div class="peek-carousel__item">
101
+ <figure class="peek-carousel__figure">
102
+ <img class="peek-carousel__image" src="https://picsum.photos/id/1018/650/490.webp" alt="霧の谷を囲む緑の崖" width="650" height="490">
103
+ <figcaption class="peek-carousel__caption"><span class="preview__caption_title">ゆっくりと遠くへ</span><span class="preview__caption_subtitle">日常を少し離れて</span></figcaption>
104
+ </figure>
105
+ </div>
106
+ <div class="peek-carousel__item">
107
+ <figure class="peek-carousel__figure">
108
+ <img class="peek-carousel__image" src="https://picsum.photos/id/1019/650/490.webp" alt="曇り空の下に広がる海岸の風景" width="650" height="490">
109
+ <figcaption class="peek-carousel__caption"><span class="preview__caption_title">青の向こうへ</span><span class="preview__caption_subtitle">海岸線をたどって</span></figcaption>
110
+ </figure>
111
+ </div>
112
+ <div class="peek-carousel__item">
113
+ <figure class="peek-carousel__figure">
114
+ <img class="peek-carousel__image" src="https://picsum.photos/id/1025/650/490.webp" alt="毛布に包まれたパグ" width="650" height="490">
115
+ <figcaption class="peek-carousel__caption"><span class="preview__caption_title">大切な友だち</span><span class="preview__caption_subtitle">小さな瞬間、大きな個性</span></figcaption>
116
+ </figure>
117
+ </div>
118
+ <div class="peek-carousel__item">
119
+ <figure class="peek-carousel__figure">
120
+ <img class="peek-carousel__image" src="https://picsum.photos/id/1035/650/490.webp" alt="流れる水のある自然の風景" width="650" height="490">
121
+ <figcaption class="peek-carousel__caption"><span class="preview__caption_title">流れにまかせて</span><span class="preview__caption_subtitle">景色を楽しむ寄り道</span></figcaption>
122
+ </figure>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <p class="playground__description" data-layout-description aria-live="polite">重なりの先に、次の発見。</p>
128
+ </div>
129
+ <div class="playground__settings">
130
+ <details class="playground__options"><summary>再生・操作の設定<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="m4 6 4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></summary><div class="playground__options_content"><fieldset class="playground__toggles"><legend>再生・操作の設定</legend>
131
+ <label class="playground__toggle" for="show-navigation"><span>左右の矢印</span><input type="checkbox" role="switch" id="show-navigation" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
132
+ <label class="playground__toggle" for="show-counter"><span>スライド枚数</span><input type="checkbox" role="switch" id="show-counter" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
133
+ <label class="playground__toggle" for="show-indicators"><span>進行インジケーター</span><input type="checkbox" role="switch" id="show-indicators" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
134
+ <label class="playground__toggle" for="show-auto-rotate-button"><span>再生ボタン</span><input type="checkbox" role="switch" id="show-auto-rotate-button" checked><span class="playground__toggle_track" aria-hidden="true"></span></label>
135
+ </fieldset><div class="playground__help"><h3>いろいろな操作に対応</h3><p id="gallery-help">カードをドラッグまたはスワイプできます。ギャラリー上でホイール操作、フォーカス中は← / →で移動。Home / Endで最初・最後へ、Spaceで再生を切り替えます。ポインターやフォーカスが入ると自動再生は停止します。</p></div></div></details>
136
+ </div>
137
+ </section>
138
+ <section class="preview__layouts" id="carousel-layouts" aria-labelledby="layouts-title">
139
+ <div class="preview__section_intro"><p class="preview__eyebrow"><span class="preview__section_number" aria-hidden="true">02</span>同じコンテンツに、新しい表情を。</p><h2 id="layouts-title">4つのJavaScriptカルーセル。</h2><p>layoutModeでレイアウトを選択。すべてのレイアウトで循環移動、タッチ、マウス、再生操作に対応します。</p></div>
140
+ <div class="preview__layout_grid"><article id="layout-stack" data-layout-card="stack" data-current="true"><div class="preview__layout_art" data-layout-art="stack" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Stack</h3><p>重なったカードが現在の写真を引き立て、左右に隣の写真がのぞきます。</p><code>layoutMode: 'stack'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="stack" aria-current="true" aria-label="Stack — デモ">デモ<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article>
141
+ <article id="layout-radial" data-layout-card="radial" data-current="false"><div class="preview__layout_art" data-layout-art="radial" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Radial</h3><p>立体的なリングの上をカードが回り、選んだ写真を手前に表示します。</p><code>layoutMode: 'radial'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="radial" aria-current="false" aria-label="Radial — デモ">デモ<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article>
142
+ <article id="layout-classic" data-layout-card="classic" data-current="false"><div class="preview__layout_art" data-layout-art="classic" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Classic</h3><p>写真が横方向に移動する、なじみのある循環型スライダーです。</p><code>layoutMode: 'classic'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="classic" aria-current="false" aria-label="Classic — デモ">デモ<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article>
143
+ <article id="layout-fan" data-layout-card="fan" data-current="false"><div class="preview__layout_art" data-layout-art="fan" aria-hidden="true"><span></span><span></span><span></span><svg class="preview__layout_check" viewBox="0 0 16 16" aria-hidden="true"><path d="m3 8 3 3 7-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></div><h3>Fan shape</h3><p>最大5枚のカードが扇状に並びます。端のカードはフェードせず、手前のカードの背後を移動します。</p><code>layoutMode: 'fan'</code><a class="preview__layout_try" href="#playground-stage" data-try-layout="fan" aria-current="false" aria-label="Fan shape — デモ">デモ<span aria-hidden="true"><svg width="16" height="16" viewBox="0 0 16 16"><path d="M8 13V3m-4 4 4-4 4 4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span></a></article></div>
144
+ </section>
145
+ <section class="preview__usage" id="getting-started" aria-labelledby="usage-title">
146
+ <div><p class="preview__eyebrow"><span class="preview__section_number" aria-hidden="true">03</span>設定は少なく、楽しさは多く。</p><h2 id="usage-title">数行から、広がる可能性。</h2><p>#gallery-carouselの中に.peek-carousel__trackと.peek-carousel__itemを配置。CSSを読み込み、DOMの準備後に初期化します。</p><a class="preview__link" href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">ドキュメントを読む <span aria-hidden="true">↗</span></a></div>
147
+ <figure class="preview__code"><figcaption class="preview__code_heading"><span data-code-filename>gallery.js</span><button class="preview__code_copy" id="starter-copy" type="button" data-pending="コピー中..." data-success="コードをコピーしました" data-fallback="コードを選択してコピーしてください。" disabled>コードをコピー</button></figcaption><div class="preview__code_tabs" role="tablist" aria-label="JavaScriptのコード例"><button type="button" role="tab" id="starter-tab-vanilla" data-code-format="vanilla" aria-controls="starter-panel" aria-selected="true" tabindex="0" disabled>Vanilla JS</button><button type="button" role="tab" id="starter-tab-react" data-code-format="react" aria-controls="starter-panel" aria-selected="false" tabindex="-1" disabled>React</button><button type="button" role="tab" id="starter-tab-cdn" data-code-format="cdn" aria-controls="starter-panel" aria-selected="false" tabindex="-1" disabled>CDN</button></div><pre id="starter-panel" tabindex="0" role="tabpanel" aria-labelledby="starter-tab-vanilla"><code data-demo-code>import PeekCarousel from &#39;peek-carousel&#39;;
148
+ import &#39;peek-carousel/dist/peek-carousel.css&#39;;
149
+
150
+ new PeekCarousel(&#39;#gallery-carousel&#39;, {
151
+ layoutMode: &#39;stack&#39;,
152
+ startIndex: 0,
153
+ });</code></pre><p class="preview__code_status" id="starter-copy-status" role="status"></p></figure>
154
+ </section>
155
+ <section class="preview__questions" id="carousel-questions" aria-labelledby="questions-title">
156
+ <div class="preview__section_intro"><p class="preview__eyebrow"><span class="preview__section_number" aria-hidden="true">04</span>使う前に</p><h2 id="questions-title">よくある質問。</h2></div>
157
+ <div class="preview__faq_list">
158
+ <details open><summary>Reactなどのフレームワークは必要ですか?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>不要です。依存ライブラリのないJavaScriptライブラリです。ESM、CommonJS、ブラウザー用UMDを提供します。</p></div></details>
159
+ <details open><summary>TypeScriptやPython・Goのプロジェクトで使えますか?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>TypeScriptの型定義を同梱しています。他のWebサーバーからも同じブラウザー用JavaScriptとCSSを配信できます。サーバー言語専用のAPIではありません。 <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/docs/integrations.md">プロジェクトへの組み込み</a></p></div></details>
160
+ <details open><summary>どんな操作を試せますか?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>ドラッグ、スワイプ、ホイール操作に対応。フォーカス中は矢印キー、Home、End、Spaceも使えます。設定で各コントロールの表示を切り替えられます。</p></div></details>
161
+ <details><summary>見た目をカスタマイズできますか?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>はい。CSS変数でカードの角丸、影、色、コントロールを変更できます。 <a href="./custom-theme.ja.html">CSSテーマのデモ</a></p></div></details>
162
+ <details><summary>商用利用はできますか?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>はい。出所と必要な表示を保持すれば、ご自身のアプリで商用利用できます。新規資料のライブラリやテンプレート自体の再配布には許可が必要です。既存のMITと写真の権利は維持されます。</p></div></details>
163
+ <details><summary>JavaScriptが無効でも読めますか?<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M3 8h10M8 3v10" fill="none" stroke="currentColor" stroke-width="1.5"/></svg></summary><div class="preview__faq_answer"><p>レイアウトの説明、コード例、言語リンク、質問と回答は静的HTMLです。操作できるプレビューにはJavaScriptが必要です。</p></div></details>
164
+ </div>
165
+ <p class="preview__sources"><a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.en.md">ソースとAPIドキュメント <span aria-hidden="true">↗</span></a></p>
166
+ </section>
167
+ </main>
168
+ <footer class="preview__footer"><span><strong class="preview__footer_brand">PeekCarousel</strong><span class="preview__footer_note">— 視点を、少し広げよう。</span></span><span>Vanilla JavaScript · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/LICENSE" >アプリ利用条件</a></span><small class="preview__copyright">© 2025 PeekCarousel · © 2026 PeekCarousel contributors. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/COPYRIGHT.md">著作権と再利用条件</a> · <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/THIRD_PARTY_NOTICES.md">画像の権利とクレジット</a></small></footer>
169
+ <script src="../dist/peek-carousel.js"></script>
170
+ <script src="./example.min.js"></script>
171
+ </body>
172
+ </html>