Skip to content

Commit a04a322

Browse files
ryo-manbaclaude
andcommitted
docs: add data-anim Inspector page and demo gif
Add Inspector docs (en/ja), sidebar navigation, demo gif converted from screen recording, and README section. Also add docs:dev/docs:build scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 786f9c2 commit a04a322

7 files changed

Lines changed: 77 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ import 'data-anim';
3939
- Visit the [Documentation](https://ryo-manba.github.io/data-anim/) to view the full API reference.
4040
- Try the [Playground](https://ryo-manba.github.io/data-anim/playground/) to experiment with animations interactively.
4141

42+
## data-anim Inspector
43+
44+
[data-anim Inspector](https://chromewebstore.google.com/detail/data-anim-inspector/cocpaadjbnbeakonflehnoefjlkhpnmb) — Chrome extension for browsing and previewing animations in the browser.
45+
4246
## Documentation
4347

4448
Visit [https://ryo-manba.github.io/data-anim/](https://ryo-manba.github.io/data-anim/) to view the full documentation.

docs/public/inspector-demo.gif

3.72 MB
Loading

docs/src/components/Sidebar.astro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ const sections = [
2929
{ href: getLocalizedPath('docs/anti-fouc', locale, base), label: t.antiFouc },
3030
],
3131
},
32+
{
33+
title: t.tools,
34+
links: [
35+
{ href: getLocalizedPath('docs/inspector', locale, base), label: t.inspector },
36+
],
37+
},
3238
{
3339
title: t.guides,
3440
links: [

docs/src/i18n/translations.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const translations = {
3030
advanced: 'Advanced',
3131
responsive: 'Responsive',
3232
antiFouc: 'Anti-FOUC',
33+
tools: 'Tools',
34+
inspector: 'data-anim Inspector',
3335
guides: 'Guides',
3436
typescript: 'TypeScript',
3537
integration: 'Integration',
@@ -51,6 +53,8 @@ export const translations = {
5153
advanced: '応用',
5254
responsive: 'レスポンシブ',
5355
antiFouc: 'Anti-FOUC',
56+
tools: 'ツール',
57+
inspector: 'data-anim Inspector',
5458
guides: 'ガイド',
5559
typescript: 'TypeScript',
5660
integration: 'インテグレーション',

docs/src/pages/docs/inspector.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: ../../layouts/DocsLayout.astro
3+
title: data-anim Inspector
4+
description: A Chrome extension to visually browse and preview all data-anim animations.
5+
---
6+
7+
# data-anim Inspector
8+
9+
[data-anim Inspector](https://chromewebstore.google.com/detail/data-anim-inspector/cocpaadjbnbeakonflehnoefjlkhpnmb) is a Chrome extension that lets you visually browse and preview all data-anim animations directly in the browser.
10+
11+
<img src="/data-anim/inspector-demo.gif" alt="data-anim Inspector demo" width="800" />
12+
13+
## Installation
14+
15+
Install from the [Chrome Web Store](https://chromewebstore.google.com/detail/data-anim-inspector/cocpaadjbnbeakonflehnoefjlkhpnmb).
16+
17+
## Features
18+
19+
- **Browse animations** — View all 30+ built-in animations organized by category (Fade, Slide, Zoom, Bounce, Attention, Rotate).
20+
- **Live preview** — Click any animation to see it play instantly on a preview element.
21+
- **Replay All** — Replay all animations on the current page with one click.
22+
- **Copy attributes** — Copy the `data-anim` HTML attributes to your clipboard so you can paste them directly into your code.
23+
- **Element inspection** — Select elements on the page to inspect and modify their data-anim attributes in real time.
24+
25+
## Usage
26+
27+
1. Open any page that uses data-anim (or any page — the extension works standalone too).
28+
2. Click the data-anim Inspector icon in your browser toolbar.
29+
3. Browse animations by category and click to preview.
30+
4. Use the copy button to grab the HTML attributes for your code.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: ../../../layouts/DocsLayout.astro
3+
title: data-anim Inspector
4+
description: data-animのアニメーションをブラウザで確認・プレビューできるChrome拡張機能。
5+
---
6+
7+
# data-anim Inspector
8+
9+
[data-anim Inspector](https://chromewebstore.google.com/detail/data-anim-inspector/cocpaadjbnbeakonflehnoefjlkhpnmb)は、data-animの全アニメーションをブラウザ上で直接確認・プレビューできるChrome拡張機能です。
10+
11+
<img src="/data-anim/inspector-demo.gif" alt="data-anim Inspector デモ" width="800" />
12+
13+
## インストール
14+
15+
[Chrome ウェブストア](https://chromewebstore.google.com/detail/data-anim-inspector/cocpaadjbnbeakonflehnoefjlkhpnmb)からインストールできます。
16+
17+
## 機能
18+
19+
- **アニメーション一覧** — Fade、Slide、Zoom、Bounce、Attention、Rotateなど、30以上の組み込みアニメーションをカテゴリ別に閲覧。
20+
- **ライブプレビュー** — アニメーションをクリックするだけで、プレビュー要素上で即座に再生。
21+
- **Replay All** — 現在のページ上の全アニメーションをワンクリックで再生。
22+
- **属性コピー**`data-anim`のHTML属性をクリップボードにコピーし、コードに直接貼り付け可能。
23+
- **要素インスペクション** — ページ上の要素を選択して、data-anim属性をリアルタイムで確認・変更。
24+
25+
## 使い方
26+
27+
1. data-animを使用しているページ(または任意のページ)を開きます。
28+
2. ブラウザツールバーのdata-anim Inspectorアイコンをクリック。
29+
3. カテゴリ別にアニメーションを閲覧し、クリックでプレビュー。
30+
4. コピーボタンでHTML属性を取得し、コードに貼り付け。

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"format:check": "oxfmt --check src/ tests/",
2929
"test": "vitest run",
3030
"test:watch": "vitest",
31-
"check": "pnpm lint && pnpm format:check && pnpm test && pnpm build"
31+
"check": "pnpm lint && pnpm format:check && pnpm test && pnpm build",
32+
"docs:dev": "pnpm --filter docs dev",
33+
"docs:build": "pnpm --filter docs build"
3234
},
3335
"keywords": [
3436
"animation",

0 commit comments

Comments
 (0)