Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 8039236

Browse files
authored
feat(docs): translate working-with-gifs (#53)
feat(docs): translate working-with-gifs
2 parents 1a8874f + 07c25c0 commit 8039236

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/docs/working-with-gifs.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Working with GIFs
2+
title: GIFを使用する
33
---
44

5-
If you're building a blog with Gatsby, chances are you'll want to include some animated GIFs: who wouldn't want to include a dancing otter or cat GIF?
5+
Gatsby でブログを作成していると、アニメーション GIF を使いたいときがあるかもしれません。たとえば踊るカワウソや猫の GIF を使いたいときなどです。
66

7-
## Including GIFs in components
7+
## コンポーネントに GIF を含める
88

9-
In Gatsby components and pages, you'll want to import animated GIFs instead of using Gatsby Image because of the way it optimizes image data for the responsive picture element.
9+
Gatsby のコンポーネントとページではレスポンシブなピクチャ要素の画像データを最適化するために、Gatsby Image を使用せずにアニメーション GIF をインポートする必要があります。
1010

11-
Here's an example:
11+
以下に例を示します。
1212

1313
```jsx:title=pages/about.js
1414
import React from 'react'
@@ -27,23 +27,23 @@ const AboutPage = () => (
2727
export default AboutPage;
2828
```
2929

30-
## Including GIFs in Markdown
30+
## Markdown に GIF を含める
3131

32-
In Markdown posts and pages, including an animated GIF is the same as a static image:
32+
Markdown による投稿とページにアニメーション GIF を含める場合は静止画像と同じ方法になります。
3333

3434
```markdown
3535
![otter dancing with a fish](./images/dancing-ofter.gif)
3636
```
3737

3838
![otter dancing with a fish](./images/dancing-otter.gif)
3939

40-
Animated GIFs can be quite large in size, so be careful not to sabotage your webpages' performance with extremely large files. You could reduce file size by [optimizing the frames](https://skylilies.livejournal.com/244378.html) or converting them to video.
40+
アニメーション GIF はファイルサイズが非常に大きい場合があるので、ウェブページのパフォーマンスを損なわないように注意してください。[フレームを最適化する](https://skylilies.livejournal.com/244378.html)かビデオに変換するとファイルサイズを小さくできます。
4141

42-
## Accessibility concerns with animated GIFs
42+
## アニメーション GIF のアクセシビリティに関する問題
4343

44-
Beware that flashing and autoplaying GIFs can cause issues for users who are sensitive to motion. GIFs should not autoplay whenever possible for safety reasons. One technique would be to add controls, such as using a package like [react-gif-player](https://www.npmjs.com/package/react-gif-player) as a [client-only package](/docs/using-client-side-only-packages/).
44+
GIF の点滅と自動再生は、動きに敏感なユーザーの問題を引き起こす可能性があることに注意してください。安全上の理由から可能な限り GIF の自動再生をするべきではありません。対処法の 1 つとしては、[react-gif-player](https://www.npmjs.com/package/react-gif-player) のようなパッケージを[クライアントサイド専用パッケージ](/docs/using-client-side-only-packages/)として使用して、GIF にコントロールを追加すると良いでしょう。
4545

46-
For more information on accessible motion:
46+
アクセシビリティにおけるモーションの詳細については以下を参照してください。
4747

4848
- https://source.opennews.org/articles/motion-sick/
4949
- https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-pause.html

0 commit comments

Comments
 (0)