peek-carousel 2.0.0 → 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.
- package/README.en.md +39 -21
- package/README.md +35 -21
- package/THIRD_PARTY_NOTICES.md +33 -23
- package/dist/peek-carousel.cjs +1 -1
- package/dist/peek-carousel.css +1 -1
- package/dist/peek-carousel.esm.js +1 -1
- package/dist/peek-carousel.js +1 -1
- package/dist/peek-carousel.min.css +1 -1
- package/docs/en/reference.md +14 -16
- package/docs/integrations.md +114 -26
- package/docs/ko/reference.md +11 -12
- package/examples/custom-theme.css +140 -58
- package/examples/custom-theme.html +27 -15
- package/examples/custom-theme.ja.html +27 -15
- package/examples/custom-theme.js +2 -2
- package/examples/custom-theme.ko.html +29 -17
- package/examples/example-built.html +61 -57
- package/examples/example-built.ja.html +61 -57
- package/examples/example-built.ko.html +63 -59
- package/examples/example.min.css +2 -2
- package/examples/example.min.js +2 -2
- package/package.json +12 -6
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/fonts/OFL-pretendard.txt +94 -0
- package/public/fonts/inter-latin.css +1 -1
- package/public/fonts/noto-sans-ja-bold.woff2 +0 -0
- package/public/fonts/noto-sans-ja.css +26 -2
- package/public/fonts/noto-sans-ja.woff2 +0 -0
- package/public/fonts/{noto-sans-ko.css → peek-preview-kr.css} +4 -4
- package/public/fonts/peek-preview-kr.woff2 +0 -0
- package/public/peek-mark.svg +5 -0
- package/public/fonts/noto-sans-ko.woff2 +0 -0
|
@@ -30,12 +30,14 @@
|
|
|
30
30
|
<link rel="alternate" hreflang="x-default" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
|
|
31
31
|
<meta property="og:locale:alternate" content="en_US">
|
|
32
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カルーセルです。","
|
|
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
34
|
<link rel="preload" href="../public/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
35
35
|
<link rel="stylesheet" href="../public/fonts/inter-latin.css">
|
|
36
36
|
<link rel="preload" href="../public/fonts/noto-sans-ja.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
37
37
|
<link rel="stylesheet" href="../public/fonts/noto-sans-ja.css">
|
|
38
|
-
<link rel="icon" href="../public/favicon-
|
|
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">
|
|
39
41
|
<link rel="stylesheet" href="../dist/peek-carousel.min.css">
|
|
40
42
|
<link rel="stylesheet" href="./example.min.css">
|
|
41
43
|
|
|
@@ -43,38 +45,51 @@
|
|
|
43
45
|
<body class="preview">
|
|
44
46
|
<a class="preview__skip" href="#demo-carousel">デモへ移動</a>
|
|
45
47
|
<header class="preview__header">
|
|
46
|
-
<a class="preview__brand" href="#"><
|
|
48
|
+
<a class="preview__brand" href="#"><img class="preview__brand_mark" src="../public/peek-mark.svg" alt="" width="32" height="32"> PeekCarousel</a>
|
|
47
49
|
<nav class="preview__nav" aria-label="メインナビゲーション">
|
|
48
|
-
<a href="#
|
|
49
|
-
<a href="https://github.com/lledellebell/peek-carousel/blob/
|
|
50
|
-
<a href="https://github.com/lledellebell/peek-carousel">GitHub <span aria-hidden="true">↗</span></a>
|
|
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>
|
|
51
53
|
</nav>
|
|
52
|
-
<nav class="preview__languages" aria-label="言語を選択">
|
|
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="言語を選択">
|
|
53
55
|
<a href="./example-built.html" lang="en" hreflang="en" aria-label="EN — English">EN</a>
|
|
54
56
|
<a href="./example-built.ja.html" lang="ja" hreflang="ja" aria-label="日本語" aria-current="page">日本語</a>
|
|
55
57
|
<a href="./example-built.ko.html" lang="ko" hreflang="ko" aria-label="한국어">한국어</a>
|
|
56
|
-
</nav>
|
|
58
|
+
</nav></details>
|
|
57
59
|
</header>
|
|
58
60
|
<main>
|
|
59
61
|
<section class="preview__hero" aria-labelledby="hero-title">
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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">
|
|
69
76
|
<div class="playground__preview">
|
|
70
77
|
<div class="playground__toolbar">
|
|
71
|
-
<h2 class="preview__eyebrow" id="playground-title">カルーセルを体験</h2>
|
|
72
|
-
<span class="playground__live"><
|
|
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>
|
|
73
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>
|
|
74
89
|
<noscript><p>操作するにはJavaScriptが必要です。レイアウトの説明とコード例はそのまま読めます。</p></noscript>
|
|
75
90
|
<div class="playground__stage" id="playground-stage" tabindex="-1">
|
|
76
91
|
<p class="playground__label" data-layout-label>01 / STACK</p>
|
|
77
|
-
<div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="写真ギャラリー" aria-roledescription="カルーセル" data-demo-a11y="{"slide":"スライド","position":"全{total}枚中{current}枚目","show":"全{total}枚中{current}枚目を表示","choose":"スライドを選択","previous":"前のスライド","next":"次のスライド","start":"自動再生を開始","stop":"自動再生を停止"}" aria-describedby="gallery-help">
|
|
92
|
+
<div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="写真ギャラリー" aria-roledescription="カルーセル" data-demo-a11y="{"slide":"スライド","position":"全{total}枚中{current}枚目","show":"全{total}枚中{current}枚目を表示","choose":"スライドを選択","previous":"前のスライド","next":"次のスライド","start":"自動再生を開始","stop":"自動再生を停止"}" aria-describedby="gallery-quick-help">
|
|
78
93
|
<div class="peek-carousel__track">
|
|
79
94
|
<div class="peek-carousel__item">
|
|
80
95
|
<figure class="peek-carousel__figure">
|
|
@@ -108,60 +123,49 @@
|
|
|
108
123
|
</div>
|
|
109
124
|
</div>
|
|
110
125
|
</div>
|
|
111
|
-
<p class="playground__hint">ドラッグして探索 <span aria-hidden="true">⟷</span></p>
|
|
112
126
|
</div>
|
|
113
127
|
<p class="playground__description" data-layout-description aria-live="polite">重なりの先に、次の発見。</p>
|
|
114
128
|
</div>
|
|
115
|
-
<
|
|
116
|
-
<
|
|
117
|
-
<h2 id="settings-title">ひとつのギャラリー。4つの表情。</h2>
|
|
118
|
-
<p class="playground__settings_intro">レイアウトを選んで、動きを比べてみましょう。</p>
|
|
119
|
-
<div class="playground__layout_picker" role="group" aria-label="レイアウトの選択">
|
|
120
|
-
<button type="button" class="playground__layout" data-layout="stack" data-description="重なりの先に、次の発見。" 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>
|
|
121
|
-
<button type="button" class="playground__layout" data-layout="radial" data-description="回すたびに、新しい視点。" 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>
|
|
122
|
-
<button type="button" class="playground__layout" data-layout="classic" data-description="一枚ずつ、心地よいリズム。" 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>
|
|
123
|
-
<button type="button" class="playground__layout" data-layout="fan" data-description="扇のように広がる、次の景色。" 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>
|
|
124
|
-
</div>
|
|
125
|
-
<fieldset class="playground__toggles"><legend>細部を調整</legend>
|
|
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>
|
|
126
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>
|
|
127
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>
|
|
128
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>
|
|
129
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>
|
|
130
|
-
</fieldset>
|
|
131
|
-
|
|
132
|
-
</aside>
|
|
135
|
+
</fieldset><div class="playground__help"><h3>いろいろな操作に対応</h3><p id="gallery-help">カードをドラッグまたはスワイプできます。ギャラリー上でホイール操作、フォーカス中は← / →で移動。Home / Endで最初・最後へ、Spaceで再生を切り替えます。ポインターやフォーカスが入ると自動再生は停止します。</p></div></div></details>
|
|
136
|
+
</div>
|
|
133
137
|
</section>
|
|
134
138
|
<section class="preview__layouts" id="carousel-layouts" aria-labelledby="layouts-title">
|
|
135
|
-
<div class="preview__section_intro"><p class="preview__eyebrow">同じコンテンツに、新しい表情を。</p><h2 id="layouts-title">4つのJavaScriptカルーセル。</h2><p>layoutModeでレイアウトを選択。すべてのレイアウトで循環移動、タッチ、マウス、再生操作に対応します。</p></div>
|
|
136
|
-
<div class="preview__layout_grid"><article id="layout-stack"><h3>Stack</h3><p>重なったカードが現在の写真を引き立て、左右に隣の写真がのぞきます。</p><code>layoutMode: 'stack'</code></article>
|
|
137
|
-
<article id="layout-radial"><h3>Radial</h3><p>立体的なリングの上をカードが回り、選んだ写真を手前に表示します。</p><code>layoutMode: 'radial'</code></article>
|
|
138
|
-
<article id="layout-classic"><h3>Classic</h3><p>写真が横方向に移動する、なじみのある循環型スライダーです。</p><code>layoutMode: 'classic'</code></article>
|
|
139
|
-
<article id="layout-fan"><h3>Fan shape</h3><p>最大5枚のカードが扇状に並びます。端のカードはフェードせず、手前のカードの背後を移動します。</p><code>layoutMode: 'fan'</code></article></div>
|
|
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>
|
|
140
144
|
</section>
|
|
141
145
|
<section class="preview__usage" id="getting-started" aria-labelledby="usage-title">
|
|
142
|
-
<div><p class="preview__eyebrow">設定は少なく、楽しさは多く。</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/blob/
|
|
143
|
-
<figure class="preview__code"><figcaption class="preview__code_heading"
|
|
144
|
-
import
|
|
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 'peek-carousel';
|
|
148
|
+
import 'peek-carousel/dist/peek-carousel.css';
|
|
145
149
|
|
|
146
|
-
new PeekCarousel(
|
|
147
|
-
layoutMode:
|
|
150
|
+
new PeekCarousel('#gallery-carousel', {
|
|
151
|
+
layoutMode: 'stack',
|
|
148
152
|
startIndex: 0,
|
|
149
|
-
});</code></pre></figure>
|
|
153
|
+
});</code></pre><p class="preview__code_status" id="starter-copy-status" role="status"></p></figure>
|
|
150
154
|
</section>
|
|
151
155
|
<section class="preview__questions" id="carousel-questions" aria-labelledby="questions-title">
|
|
152
|
-
<div class="preview__section_intro"><p class="preview__eyebrow">使う前に</p><h2 id="questions-title">よくある質問。</h2></div>
|
|
153
|
-
<
|
|
154
|
-
<
|
|
155
|
-
<
|
|
156
|
-
<div><
|
|
157
|
-
<div><
|
|
158
|
-
<div><
|
|
159
|
-
<
|
|
160
|
-
</
|
|
161
|
-
<p class="preview__sources"><a href="https://github.com/lledellebell/peek-carousel/blob/
|
|
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>
|
|
162
166
|
</section>
|
|
163
167
|
</main>
|
|
164
|
-
<footer class="preview__footer"><span>PeekCarousel
|
|
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>
|
|
165
169
|
<script src="../dist/peek-carousel.js"></script>
|
|
166
170
|
<script src="./example.min.js"></script>
|
|
167
171
|
</body>
|
|
@@ -30,11 +30,13 @@
|
|
|
30
30
|
<link rel="alternate" hreflang="x-default" href="https://lledellebell.github.io/peek-carousel/examples/example-built.html">
|
|
31
31
|
<meta property="og:locale:alternate" content="en_US">
|
|
32
32
|
<meta property="og:locale:alternate" content="ja_JP">
|
|
33
|
-
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.ko.html","url":"https://lledellebell.github.io/peek-carousel/examples/example-built.ko.html","name":"PeekCarousel — JavaScript 캐러셀 데모와 4가지 레이아웃","description":"Stack·Radial·Classic·Fan shape 레이아웃을 직접 체험하세요. 터치, 키보드, 자동 재생과 CSS 테마를 지원하는 런타임 의존성 없는 JavaScript 캐러셀입니다.","inLanguage":"ko","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 레이아웃을 직접 체험하세요. 터치, 키보드, 자동 재생과 CSS 테마를 지원하는 런타임 의존성 없는 JavaScript 캐러셀입니다.","
|
|
33
|
+
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://lledellebell.github.io/peek-carousel/examples/example-built.ko.html","url":"https://lledellebell.github.io/peek-carousel/examples/example-built.ko.html","name":"PeekCarousel — JavaScript 캐러셀 데모와 4가지 레이아웃","description":"Stack·Radial·Classic·Fan shape 레이아웃을 직접 체험하세요. 터치, 키보드, 자동 재생과 CSS 테마를 지원하는 런타임 의존성 없는 JavaScript 캐러셀입니다.","inLanguage":"ko","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 레이아웃을 직접 체험하세요. 터치, 키보드, 자동 재생과 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
34
|
|
|
35
|
-
<link rel="preload" href="../public/fonts/
|
|
36
|
-
<link rel="stylesheet" href="../public/fonts/
|
|
37
|
-
<link rel="icon" href="../public/favicon-
|
|
35
|
+
<link rel="preload" href="../public/fonts/peek-preview-kr.woff2" as="font" type="font/woff2" crossorigin="anonymous">
|
|
36
|
+
<link rel="stylesheet" href="../public/fonts/peek-preview-kr.css">
|
|
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">
|
|
38
40
|
<link rel="stylesheet" href="../dist/peek-carousel.min.css">
|
|
39
41
|
<link rel="stylesheet" href="./example.min.css">
|
|
40
42
|
|
|
@@ -42,38 +44,51 @@
|
|
|
42
44
|
<body class="preview">
|
|
43
45
|
<a class="preview__skip" href="#demo-carousel">미리보기로 건너뛰기</a>
|
|
44
46
|
<header class="preview__header">
|
|
45
|
-
<a class="preview__brand" href="#"><
|
|
47
|
+
<a class="preview__brand" href="#"><img class="preview__brand_mark" src="../public/peek-mark.svg" alt="" width="32" height="32"> PeekCarousel</a>
|
|
46
48
|
<nav class="preview__nav" aria-label="주요 탐색">
|
|
47
|
-
<a href="#
|
|
48
|
-
<a href="https://github.com/lledellebell/peek-carousel/blob/
|
|
49
|
-
<a href="https://github.com/lledellebell/peek-carousel">GitHub <span aria-hidden="true">↗</span></a>
|
|
49
|
+
<a href="#layout-controls" aria-current="page">미리보기</a>
|
|
50
|
+
<a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.md">문서 <span aria-hidden="true">↗</span></a>
|
|
51
|
+
<a href="https://github.com/lledellebell/peek-carousel-docs">GitHub <span aria-hidden="true">↗</span></a>
|
|
50
52
|
</nav>
|
|
51
|
-
<nav class="preview__languages" aria-label="언어 선택">
|
|
53
|
+
<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="언어 선택">
|
|
52
54
|
<a href="./example-built.html" lang="en" hreflang="en" aria-label="EN — English">EN</a>
|
|
53
55
|
<a href="./example-built.ja.html" lang="ja" hreflang="ja" aria-label="日本語">日本語</a>
|
|
54
56
|
<a href="./example-built.ko.html" lang="ko" hreflang="ko" aria-label="한국어" aria-current="page">한국어</a>
|
|
55
|
-
</nav>
|
|
57
|
+
</nav></details>
|
|
56
58
|
</header>
|
|
57
59
|
<main>
|
|
58
60
|
<section class="preview__hero" aria-labelledby="hero-title">
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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">작은 라이브러리. 새로운 시선.</span></p>
|
|
63
|
+
<h1 id="hero-title"><span>네 가지 레이아웃. </span><span class="preview__hero_accent">하나의 캐러셀.</span></h1>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="preview__hero_summary">
|
|
66
|
+
<div class="preview__intro"><p>런타임 의존성 없는 JavaScript 캐러셀입니다.<br>터치, 키보드, 자동 재생을 직접 체험하세요.</p></div>
|
|
67
|
+
<div class="preview__hero_actions">
|
|
68
|
+
<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>
|
|
69
|
+
<a class="preview__link" href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.md#설치">설치 안내<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="코드 복사: 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>
|
|
72
|
+
</div>
|
|
73
|
+
</section>
|
|
74
|
+
<section class="playground playground__gallery" aria-labelledby="playground-title">
|
|
68
75
|
<div class="playground__preview">
|
|
69
76
|
<div class="playground__toolbar">
|
|
70
|
-
<h2 class="preview__eyebrow" id="playground-title">직접 만나는 캐러셀</h2>
|
|
71
|
-
<span class="playground__live"><
|
|
77
|
+
<h2 class="preview__eyebrow" id="playground-title"><span class="preview__section_number" aria-hidden="true">01</span>직접 만나는 캐러셀</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>실시간 미리보기</span>
|
|
72
79
|
</div>
|
|
80
|
+
<div class="playground__mode_bar" id="layout-controls" tabindex="-1"><h3 id="settings-title">레이아웃 선택</h3>
|
|
81
|
+
<div class="playground__layout_picker" role="group" aria-label="레이아웃 선택">
|
|
82
|
+
<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>
|
|
83
|
+
<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>
|
|
84
|
+
<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>
|
|
85
|
+
<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>
|
|
86
|
+
</div></div>
|
|
87
|
+
<p class="playground__quick_help" id="gallery-quick-help">드래그하거나 ← / → 키로 이동하세요.</p>
|
|
73
88
|
<noscript><p>직접 조작하려면 JavaScript가 필요합니다. 레이아웃 설명과 시작 코드는 아래에서 읽을 수 있습니다.</p></noscript>
|
|
74
89
|
<div class="playground__stage" id="playground-stage" tabindex="-1">
|
|
75
90
|
<p class="playground__label" data-layout-label>01 / STACK</p>
|
|
76
|
-
<div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="사진 갤러리" aria-roledescription="캐러셀" data-demo-a11y="{"slide":"슬라이드","position":"전체 {total}장 중 {current}번째","show":"전체 {total}장 중 {current}번째 슬라이드 표시","choose":"슬라이드 선택","previous":"이전 슬라이드","next":"다음 슬라이드","start":"자동 재생 시작","stop":"자동 재생 중지"}" aria-describedby="gallery-help">
|
|
91
|
+
<div class="peek-carousel" id="demo-carousel" tabindex="0" role="region" aria-label="사진 갤러리" aria-roledescription="캐러셀" data-demo-a11y="{"slide":"슬라이드","position":"전체 {total}장 중 {current}번째","show":"전체 {total}장 중 {current}번째 슬라이드 표시","choose":"슬라이드 선택","previous":"이전 슬라이드","next":"다음 슬라이드","start":"자동 재생 시작","stop":"자동 재생 중지"}" aria-describedby="gallery-quick-help">
|
|
77
92
|
<div class="peek-carousel__track">
|
|
78
93
|
<div class="peek-carousel__item">
|
|
79
94
|
<figure class="peek-carousel__figure">
|
|
@@ -107,60 +122,49 @@
|
|
|
107
122
|
</div>
|
|
108
123
|
</div>
|
|
109
124
|
</div>
|
|
110
|
-
<p class="playground__hint">드래그하며 둘러보기 <span aria-hidden="true">⟷</span></p>
|
|
111
125
|
</div>
|
|
112
126
|
<p class="playground__description" data-layout-description aria-live="polite">익숙한 겹침 사이로, 새로운 발견.</p>
|
|
113
127
|
</div>
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
<h2 id="settings-title">하나의 갤러리. 네 가지 표정.</h2>
|
|
117
|
-
<p class="playground__settings_intro">레이아웃을 고르고, 움직임을 느껴보세요.</p>
|
|
118
|
-
<div class="playground__layout_picker" role="group" aria-label="레이아웃 선택">
|
|
119
|
-
<button type="button" class="playground__layout" data-layout="stack" data-description="익숙한 겹침 사이로, 새로운 발견." 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>
|
|
120
|
-
<button type="button" class="playground__layout" data-layout="radial" data-description="돌릴 때마다, 새로운 시선." 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>
|
|
121
|
-
<button type="button" class="playground__layout" data-layout="classic" data-description="한 장씩, 편안한 리듬으로." 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>
|
|
122
|
-
<button type="button" class="playground__layout" data-layout="fan" data-description="부채처럼 펼쳐지는, 다음 풍경." 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>
|
|
123
|
-
</div>
|
|
124
|
-
<fieldset class="playground__toggles"><legend>작은 디테일까지</legend>
|
|
128
|
+
<div class="playground__settings">
|
|
129
|
+
<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>
|
|
125
130
|
<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>
|
|
126
131
|
<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>
|
|
127
132
|
<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>
|
|
128
133
|
<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>
|
|
129
|
-
</fieldset>
|
|
130
|
-
|
|
131
|
-
</aside>
|
|
134
|
+
</fieldset><div class="playground__help"><h3>다양한 조작 방식</h3><p id="gallery-help">카드를 드래그하거나 스와이프하세요. 갤러리 위에서 휠을 사용하거나 초점을 둔 뒤 ← / →로 이동할 수 있습니다. Home / End는 처음과 끝으로, Space는 재생을 전환합니다. 포인터나 초점이 갤러리에 들어오면 자동 재생이 멈춥니다.</p></div></div></details>
|
|
135
|
+
</div>
|
|
132
136
|
</section>
|
|
133
137
|
<section class="preview__layouts" id="carousel-layouts" aria-labelledby="layouts-title">
|
|
134
|
-
<div class="preview__section_intro"><p class="preview__eyebrow">같은 콘텐츠, 다른 분위기.</p><h2 id="layouts-title">네 가지 JavaScript 캐러셀.</h2><p>layoutMode로 레이아웃을 고르세요. 모든 레이아웃에서 순환 탐색, 터치, 마우스와 재생 컨트롤을 사용할 수 있습니다.</p></div>
|
|
135
|
-
<div class="preview__layout_grid"><article id="layout-stack"><h3>Stack</h3><p>겹친 카드가 현재 사진을 강조하고 양옆으로 이웃한 사진을 보여줍니다.</p><code>layoutMode: 'stack'</code></article>
|
|
136
|
-
<article id="layout-radial"><h3>Radial</h3><p>입체적인 고리를 따라 카드가 회전하며 선택한 사진을 앞으로 가져옵니다.</p><code>layoutMode: 'radial'</code></article>
|
|
137
|
-
<article id="layout-classic"><h3>Classic</h3><p>사진이 가로로 움직이는 익숙한 순환형 슬라이더입니다.</p><code>layoutMode: 'classic'</code></article>
|
|
138
|
-
<article id="layout-fan"><h3>Fan shape</h3><p>최대 다섯 장의 카드가 부채 모양으로 펼쳐집니다. 끝의 카드는 페이드 없이 앞쪽 카드 뒤로 이동합니다.</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>같은 콘텐츠, 다른 분위기.</p><h2 id="layouts-title">네 가지 JavaScript 캐러셀.</h2><p>layoutMode로 레이아웃을 고르세요. 모든 레이아웃에서 순환 탐색, 터치, 마우스와 재생 컨트롤을 사용할 수 있습니다.</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>겹친 카드가 현재 사진을 강조하고 양옆으로 이웃한 사진을 보여줍니다.</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>
|
|
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>입체적인 고리를 따라 카드가 회전하며 선택한 사진을 앞으로 가져옵니다.</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>
|
|
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>사진이 가로로 움직이는 익숙한 순환형 슬라이더입니다.</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>
|
|
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>최대 다섯 장의 카드가 부채 모양으로 펼쳐집니다. 끝의 카드는 페이드 없이 앞쪽 카드 뒤로 이동합니다.</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>
|
|
139
143
|
</section>
|
|
140
144
|
<section class="preview__usage" id="getting-started" aria-labelledby="usage-title">
|
|
141
|
-
<div><p class="preview__eyebrow">설정은 가볍게, 경험은 풍부하게.</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/blob/
|
|
142
|
-
<figure class="preview__code"><figcaption class="preview__code_heading"
|
|
143
|
-
import
|
|
145
|
+
<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.md">문서 살펴보기 <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="복사 중..." 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 'peek-carousel';
|
|
147
|
+
import 'peek-carousel/dist/peek-carousel.css';
|
|
144
148
|
|
|
145
|
-
new PeekCarousel(
|
|
146
|
-
layoutMode:
|
|
149
|
+
new PeekCarousel('#gallery-carousel', {
|
|
150
|
+
layoutMode: 'stack',
|
|
147
151
|
startIndex: 0,
|
|
148
|
-
});</code></pre></figure>
|
|
152
|
+
});</code></pre><p class="preview__code_status" id="starter-copy-status" role="status"></p></figure>
|
|
149
153
|
</section>
|
|
150
154
|
<section class="preview__questions" id="carousel-questions" aria-labelledby="questions-title">
|
|
151
|
-
<div class="preview__section_intro"><p class="preview__eyebrow">알아두면 좋은 이야기</p><h2 id="questions-title">자주 묻는 질문.</h2></div>
|
|
152
|
-
<
|
|
153
|
-
<
|
|
154
|
-
<
|
|
155
|
-
<
|
|
156
|
-
<
|
|
157
|
-
<
|
|
158
|
-
<
|
|
159
|
-
</
|
|
160
|
-
<p class="preview__sources"><a href="https://github.com/lledellebell/peek-carousel/blob/
|
|
155
|
+
<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>
|
|
156
|
+
<div class="preview__faq_list">
|
|
157
|
+
<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>
|
|
158
|
+
<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 타입 선언을 포함합니다. 다른 웹 서버에서도 같은 브라우저 JS와 CSS를 제공할 수 있습니다. 서버 언어 전용 API는 아닙니다. <a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/docs/integrations.md">프로젝트 통합 안내</a></p></div></details>
|
|
159
|
+
<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>
|
|
160
|
+
<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.ko.html">CSS 테마 미리보기</a></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>네. 출처와 필수 고지를 유지하면 자신의 앱에서 상업적으로 사용할 수 있습니다. 새 자료를 라이브러리나 템플릿 자체로 재배포하려면 허가가 필요합니다. 기존 MIT와 사진의 권한은 유지됩니다.</p></div></details>
|
|
162
|
+
<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>
|
|
163
|
+
</div>
|
|
164
|
+
<p class="preview__sources"><a href="https://github.com/lledellebell/peek-carousel-docs/blob/main/README.md">소스와 API 문서 <span aria-hidden="true">↗</span></a></p>
|
|
161
165
|
</section>
|
|
162
166
|
</main>
|
|
163
|
-
<footer class="preview__footer"><span>PeekCarousel
|
|
167
|
+
<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>
|
|
164
168
|
<script src="../dist/peek-carousel.js"></script>
|
|
165
169
|
<script src="./example.min.js"></script>
|
|
166
170
|
</body>
|