Skip to content

Commit aa62e6c

Browse files
committed
translate 03-advanced-svelte/03-animations into Japanese
1 parent 620fafa commit aa62e6c

File tree

1 file changed

+7
-7
lines changed
  • content/tutorial/03-advanced-svelte/03-animations/01-animate

1 file changed

+7
-7
lines changed

content/tutorial/03-advanced-svelte/03-animations/01-animate/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: The animate directive
33
---
44

5-
In the [previous chapter](/tutorial/deferred-transitions), we used deferred transitions to create the illusion of motion as elements move from one todo list to the other.
5+
[前の章](/tutorial/deferred-transitions)では、要素が1つのToDoリストから別のリストに移動するときに、遷移の遅延を使用して動きの錯覚を作成しました。
66

7-
To complete the illusion, we also need to apply motion to the elements that _aren't_ transitioning. For this, we use the `animate` directive.
7+
この錯覚を完成させるには、遷移して *いない* 要素にもモーションを適用する必要があります。このために、`animate` ディレクティブを使用します。
88

9-
First, import the `flip` function — flip stands for ['First, Last, Invert, Play'](https://aerotwist.com/blog/flip-your-animations/) — from `svelte/animate` into `TodoList.svelte`:
9+
最初に、`TodoList.svelte``flip` 関数(flip ['First, Last, Invert, Play'](https://aerotwist.com/blog/flip-your-animations/) の略です)を `svelte/animate` からインポートします
1010

1111
```svelte
1212
<script>
@@ -18,7 +18,7 @@ First, import the `flip` function — flip stands for ['First, Last, Invert, Pla
1818
</script>
1919
```
2020

21-
Then add it to the `<label>` elements:
21+
次に、それを `<label>` 要素に追加します。
2222

2323
```svelte
2424
<label
@@ -28,7 +28,7 @@ Then add it to the `<label>` elements:
2828
>
2929
```
3030

31-
The movement is a little slow in this case, so we can add a `duration` parameter:
31+
この場合、動きが少し遅いので、`duration` パラメータを追加することができます。
3232

3333
```svelte
3434
<label
@@ -38,6 +38,6 @@ The movement is a little slow in this case, so we can add a `duration` parameter
3838
>
3939
```
4040

41-
> `duration` can also be a `d => milliseconds` function, where `d` is the number of pixels the element has to travel
41+
> `duration` `d => ミリ秒` 関数でもよいです。`d` は,要素が移動する必要があるピクセル数です。
4242
43-
Note that all the transitions and animations are being applied with CSS, rather than JavaScript, meaning they won't block (or be blocked by) the main thread.
43+
すべてのトランジションとアニメーションが JavaScript ではなく CSS で適用されていて、メインスレッドをブロックすることはない(ブロックされることもない)という点に注意してください。

0 commit comments

Comments
 (0)